Chore: solving TODOs

This commit is contained in:
Grail Finder
2025-10-03 20:42:36 +03:00
parent 448cb97074
commit dc183e3692
7 changed files with 21 additions and 34 deletions

View File

@@ -7,13 +7,14 @@ import (
)
type Config struct {
EnableCluedo bool `toml:"EnableCluedo"` // Cluedo game mode toggle
CluedoRole2 string `toml:"CluedoRole2"` // Secondary AI role name
ChatAPI string `toml:"ChatAPI"`
CompletionAPI string `toml:"CompletionAPI"`
CurrentAPI string
CurrentProvider string
APIMap map[string]string
EnableCluedo bool `toml:"EnableCluedo"` // Cluedo game mode toggle
CluedoRole2 string `toml:"CluedoRole2"` // Secondary AI role name
ChatAPI string `toml:"ChatAPI"`
CompletionAPI string `toml:"CompletionAPI"`
CurrentAPI string
CurrentProvider string
APIMap map[string]string
FetchModelNameAPI string `toml:"FetchModelNameAPI"`
//
ShowSys bool `toml:"ShowSys"`
LogFile string `toml:"LogFile"`
@@ -88,6 +89,7 @@ func LoadConfigOrDefault(fn string) *Config {
// tts
config.TTS_ENABLED = false
config.TTS_URL = "http://localhost:8880/v1/audio/speech"
config.FetchModelNameAPI = "http://localhost:8080/v1/models"
}
config.CurrentAPI = config.ChatAPI
config.APIMap = map[string]string{