feat: Improve parameter fault tolerance for DeepSeek
This commit is contained in:
parent
afc3a2cda3
commit
18d3634f1b
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