Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeDefault ¶
func ChangeDefault(Model types.LLMProvider) error
func DeleteModel ¶
func DeleteModel(Model types.LLMProvider) error
func Save ¶
func Save(LLMConfig LLMProvider) error
func UpdateAPIKey ¶
func UpdateAPIKey(Model types.LLMProvider, APIKey string) error
Types ¶
type Config ¶
type Config struct {
Default types.LLMProvider `json:"default"`
LLMProviders []LLMProvider `json:"models"`
}
func ListSavedModels ¶
type LLMProvider ¶
type LLMProvider struct {
LLM types.LLMProvider `json:"model"`
APIKey string `json:"api_key"`
}
func DefaultLLMKey ¶
func DefaultLLMKey() (*LLMProvider, error)
Click to show internal directories.
Click to hide internal directories.