Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearConfig ¶ added in v0.3.0
func ClearConfig() error
func NewFromConfigFile ¶ added in v0.3.0
func NewFromConfigFile() (openai.ClientConfig, error)
func SanitizeInput ¶ added in v0.3.0
SanitizeInput trims whitespaces and newlines from a string.
func SaveConfig ¶ added in v0.3.0
SaveConfig writes the configuration to disk, and the API key to the keyring.
func ValidateConfig ¶ added in v0.3.0
ValidateConfig checks if a Config object has valid data.
Types ¶
type Config ¶ added in v0.3.0
type Config struct { Endpoint string `json:"endpoint"` ApiVersion string `json:"apiVersion"` ModelDeployment string `json:"modelDeployment"` // contains filtered or unexported fields }
func LoadConfig ¶ added in v0.3.0
LoadConfig reads the configuration from disk and loads the API key from the keyring.
Click to show internal directories.
Click to hide internal directories.