package
Version:
v0.0.0-...-337008c
Opens a new window with list of versions in this module.
Published: Oct 11, 2024
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
EnvDev = "dev"
EnvTest = "test"
EnvProd = "prod"
)
type Account struct {
Passes []string `yaml:"passes"`
}
type Config struct {
Env string `yaml:"env"`
Port uint16 `yaml:"port"`
MainDB MySQL `yaml:"main_db"`
LLM LLM `yaml:"llm"`
Account Account `yaml:"account"`
}
type LLM struct {
OpenAIAPIKey string `yaml:"open_ai_api_key"`
OpenAIModelName string `json:"open_ai_model_name"`
EmbeddingModelName string `yaml:"embedding_model_name"`
VectorDBHost string `yaml:"vector_db_host"`
RedisVector VectorDB `yaml:"redis_vector"`
}
type MySQL struct {
DSN string `yaml:"dsn"`
}
type VectorDB struct {
Scheme string `yaml:"scheme"`
Host string `yaml:"host"`
Index string `yaml:"index"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.