Skip to content

Commit ed8fc87

Browse files
committed
feat: fix bug in getOpenAiModelType
1 parent 1dcfc1a commit ed8fc87

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

controllers/message_carrier.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ func isReasonModel(typ string) bool {
114114
return true
115115
} else if strings.Contains(typ, "kimi-for-coding") {
116116
return true
117+
} else if strings.Contains(typ, "deepseek-v4-pro") {
118+
return true
117119
}
118120
return false
119121
}

model/openai_util.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ func getOpenAiModelType(model string) string {
9191
"qvq-max", "qvq-plus",
9292
// Other
9393
"deep-research", "custom-model",
94+
// DeepSeek models
95+
"deepseek-v4-pro", "deepseek-v4-flash", "deepseek-chat", "deepseek-reasoner",
9496
}
9597

9698
completionModels := []string{

0 commit comments

Comments
 (0)