config

package
v0.0.0-...-df769fd Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Path

func Path() string

Path returns the on-disk config path.

func Save

func Save(cfg *Config) error

Save persists the config file with 0600 permissions.

Types

type Config

type Config struct {
	RateLimitRPS             float64 `json:"rate_limit_rps"`
	RateLimitBurst           int     `json:"rate_limit_burst"`
	OpenAIAPIKey             string  `json:"openai_api_key"`
	OpenAIModel              string  `json:"openai_model"`
	OpenAIVoice              string  `json:"openai_voice"`
	OpenAILanguage           string  `json:"openai_language"`
	OpenAITranscriptionModel string  `json:"openai_transcription_model"`
	OpenAIVoiceSpeed         float64 `json:"openai_voice_speed"`
	OpenAIInputDevice        int     `json:"openai_input_device"`
	OpenAIOutputDevice       int     `json:"openai_output_device"`
}

Config stores shared CLI settings that apply across providers.

func Load

func Load() (*Config, error)

Load reads config.json or returns defaults when the file does not exist.

func Normalize

func Normalize(cfg *Config) (*Config, error)

Normalize applies defaults and validates persisted values.

Jump to

Keyboard shortcuts

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