Enha: default rag dir

This commit is contained in:
Grail Finder
2026-02-24 11:37:44 +03:00
parent c39e1c267d
commit 978369eeaa

View File

@@ -124,6 +124,9 @@ func LoadConfig(fn string) (*Config, error) {
if config.CompletionAPI != "" {
config.ApiLinks = append(config.ApiLinks, config.CompletionAPI)
}
if config.RAGDir == "" {
config.RAGDir = "ragimport"
}
// if any value is empty fill with default
return config, nil
}