config

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomizationPath

func CustomizationPath() (string, error)

func DBPath

func DBPath() string

func Dir

func Dir() string

func GetTheme

func GetTheme() string

func SetCurrentModel

func SetCurrentModel(model ResModel) error

func SetTheme

func SetTheme(theme string) error

func SkillsPath

func SkillsPath() string

Types

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"`
}

```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 Provider

type Provider struct {
	BaseUrl string   `json:"base_url"`
	ApiKey  string   `json:"api_key"`
	Models  []string `json:"models"`
}

type ResModel

type ResModel struct {
	Model   string `json:"model"`
	ApiKey  string `json:"api_key"`
	BaseUrl string `json:"base_url"`
}

func GetCurrentModel

func GetCurrentModel() (ResModel, error)

func GetModels

func GetModels() ([]ResModel, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL