feat: Improve parameter fault tolerance for DeepSeek
This commit is contained in:
@@ -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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user