Skip to content

Commit

Permalink
fix: classify chatgpt-4o-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
Sakurasan committed Dec 19, 2024
1 parent 24bac8e commit 1f5e1c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func ChatHandler(c *gin.Context) {
return
}

if strings.HasPrefix(chatreq.Model, "gpt") || strings.HasPrefix(chatreq.Model, "o1-") {
if strings.Contains(chatreq.Model, "gpt") || strings.HasPrefix(chatreq.Model, "o1-") {
openai.ChatProxy(c, &chatreq)
return
}
Expand Down

0 comments on commit 1f5e1c2

Please sign in to comment.