diff --git a/router/chat.go b/router/chat.go index fa3d2b7..0637192 100644 --- a/router/chat.go +++ b/router/chat.go @@ -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 }