feat: Improve parameter fault tolerance for DeepSeek
This commit is contained in:
parent
fc55987187
commit
0b8ef30b72
1 changed files with 3 additions and 0 deletions
|
|
@ -310,6 +310,9 @@ func CreateProvider(cfg *config.Config) (LLMProvider, error) {
|
|||
if apiBase == "" {
|
||||
apiBase = "https://api.deepseek.com/v1"
|
||||
}
|
||||
if model != "deepseek-chat" && model != "deepseek-reasoner" {
|
||||
model = "deepseek-chat"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue