Fix: config & ds prompt

This commit is contained in:
Grail Finder
2025-05-27 15:42:30 +03:00
parent c155654d5f
commit 6dcc3f0309
2 changed files with 21 additions and 9 deletions

View File

@ -20,8 +20,8 @@ type ServerConfig struct {
}
type LLMConfig struct {
URL string `toml:"LLM_URL"`
TOKEN string `toml:"LLM_TOKEN"`
URL string `toml:"URL"`
TOKEN string `toml:"TOKEN"`
}
func LoadConfigOrDefault(fn string) *Config {
@ -38,5 +38,6 @@ func LoadConfigOrDefault(fn string) *Config {
config.ServerConfig.Host = "localhost"
config.ServerConfig.Port = "3000"
}
// fmt.Printf("config debug; config.LLMConfig.URL: %s\n", config.LLMConfig.URL)
return config
}