store

package
v1.3.18 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeDefault

func ChangeDefault(Model string) error

func DeleteModel

func DeleteModel(Model string) error

func Save

func Save(LLMConfig LLMProvider) error

func UpdateAPIKey

func UpdateAPIKey(Model, APIKey string) error

Types

type Config

type Config struct {
	Default      string        `json:"default"`
	LLMProviders []LLMProvider `json:"models"`
}

func ListSavedModels

func ListSavedModels() (*Config, error)

type LLMProvider

type LLMProvider struct {
	LLM    string `json:"model"`
	APIKey string `json:"api_key"`
}

func DefaultLLMKey

func DefaultLLMKey() (*LLMProvider, error)

Jump to

Keyboard shortcuts

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