Documentation
¶
Index ¶
- func CustomizationPath() (string, error)
- func DBPath() string
- func Dir() string
- func GetModels() ([]ResModel, []RecentModels, error)
- func GetTheme() string
- func SetApiKey(m ResModel, apikey string) error
- func SetCurrentModel(model ResModel) error
- func SetTheme(theme string) error
- func SkillsPath() string
- type AllModels
- type Customization
- type Provider
- type RecentModels
- type ResModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomizationPath ¶
func GetModels ¶
func GetModels() ([]ResModel, []RecentModels, error)
func SetCurrentModel ¶
func SkillsPath ¶
func SkillsPath() string
Types ¶
type AllModels ¶ added in v0.1.8
type AllModels struct {
Models []ResModel
RecentModels []RecentModels
}
type Customization ¶
type Customization struct {
SkillsPath string `json:"skills_path"`
Port string `json:"port"`
Theme string `json:"theme"`
Providers []Provider `json:"providers"`
CurrentModel ResModel `json:"current_model"`
RecentModels []RecentModels `json:"recent_models"`
}
```bash OPENAI_API_KEY=sk-... OPENAI_BASE_URL=https://... SKILL_PATH=path/to/skill/folder API_URL=http://localhost:8080 ```
func GetCustomization ¶
func GetCustomization() Customization
type RecentModels ¶ added in v0.1.8
type RecentModels struct {
Model string `json:"model"`
ApiKey string `json:"api_key"`
BaseUrl string `json:"base_url"`
LastUsed int64 `json:"last_used"`
}
func GetRecentModels ¶ added in v0.1.8
func GetRecentModels() []RecentModels
Click to show internal directories.
Click to hide internal directories.