config

package
v0.0.0-...-28e1430 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create() string

func Exists

func Exists() bool

Types

type Config

type Config struct {
	SystemPrompt string   `toml:"system_prompt"`
	Groq         Provider `toml:"groq"`
	Cerebras     Provider `toml:"cerebras"`
	Gemini       Provider `toml:"gemini"`
}

func Parse

func Parse() (Config, error)

type Provider

type Provider struct {
	Model  string `toml:"model"`
	ApiKey string `toml:"api_key"`
}

func (Provider) IsValid

func (c Provider) IsValid() bool

Jump to

Keyboard shortcuts

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