config

package
v0.0.0-...-2cc1806 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 5 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 {
	TomlConfig
	ConfigPath string
}

func DefaultConfig

func DefaultConfig() (config *Config)

func NewConfig

func NewConfig() Config

func (Config) String

func (c Config) String() string

type TomlConfig

type TomlConfig struct {
	BaseUrl     string  `toml:"OPENAI_API_BASE_URL"`
	ApiKey      string  `toml:"OPENAI_API_KEY"`
	Model       string  `toml:"MODEL"`
	Temperature float64 `toml:"TEMPERATURE"`
}

Jump to

Keyboard shortcuts

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