feat: Improve parameter fault tolerance for DeepSeek

This commit is contained in:
Lixeer
2026-02-14 16:47:46 +08:00
parent afc3a2cda3
commit 18d3634f1b

View File

@@ -310,6 +310,9 @@ func CreateProvider(cfg *config.Config) (LLMProvider, error) {
if apiBase == "" { if apiBase == "" {
apiBase = "https://api.deepseek.com/v1" apiBase = "https://api.deepseek.com/v1"
} }
if model != "deepseek-chat" && model != "deepseek-reasoner" {
model = "deepseek-chat"
}
} }
} }
} }