config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Provider     ProviderType `json:"provider"`
	OpenAIAPIKey string       `json:"openai_api_key"`
	OllamaModel  string       `json:"ollama_model"`
	OllamaURL    string       `json:"ollama_url"`
}

func Load

func Load() (*Config, error)

func (*Config) Save

func (c *Config) Save() error

type ProviderType

type ProviderType string
const (
	ProviderOpenAI ProviderType = "openai"
	ProviderOllama ProviderType = "ollama"
)

Jump to

Keyboard shortcuts

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