summaryrefslogtreecommitdiff
path: root/config/config.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-10-03 20:42:36 +0300
committerGrail Finder <wohilas@gmail.com>2025-10-03 20:42:36 +0300
commitdc183e3692711e566226bbe2e462498ca9762687 (patch)
tree5f3c7efc7692c67f8cde15e20ad979cdd68c615c /config/config.go
parent448cb97074bb471bc2c9e0848ecbd005e994c3a6 (diff)
Chore: solving TODOs
Diffstat (limited to 'config/config.go')
-rw-r--r--config/config.go16
1 files changed, 9 insertions, 7 deletions
diff --git a/config/config.go b/config/config.go
index cc6e0de..b3eaace 100644
--- a/config/config.go
+++ b/config/config.go
@@ -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{