Fix the case sensitivity issue when automatically recognizing VolcEngine LLM model names.
This commit is contained in:
parent
2f24be6c59
commit
6cd419b6e2
1 changed files with 1 additions and 1 deletions
|
|
@ -428,7 +428,7 @@ func CreateProvider(cfg *config.Config) (LLMProvider, error) {
|
||||||
}
|
}
|
||||||
fmt.Println("Ollama apiBase:", apiBase)
|
fmt.Println("Ollama apiBase:", apiBase)
|
||||||
|
|
||||||
case (strings.Contains(lowerModel, "doubao") || strings.HasPrefix(model, "doubao") || strings.Contains(lowerModel, "volcengine")) && cfg.Providers.VolcEngine.APIKey != "":
|
case (strings.Contains(lowerModel, "doubao") || strings.HasPrefix(lowerModel, "doubao") || strings.Contains(lowerModel, "volcengine")) && cfg.Providers.VolcEngine.APIKey != "":
|
||||||
apiKey = cfg.Providers.VolcEngine.APIKey
|
apiKey = cfg.Providers.VolcEngine.APIKey
|
||||||
apiBase = cfg.Providers.VolcEngine.APIBase
|
apiBase = cfg.Providers.VolcEngine.APIBase
|
||||||
proxy = cfg.Providers.VolcEngine.Proxy
|
proxy = cfg.Providers.VolcEngine.Proxy
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue