up
This commit is contained in:
1 parent
752053f7c4
commit
08ce7e2a4b
1 file changed
+6
@@ -5,6 +5,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"opencatd-open/pkg/claude"
|
||||
"opencatd-open/pkg/google"
|
||||
"opencatd-open/pkg/openai"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
@@ -26,4 +27,9 @@ func ChatHandler(c *gin.Context) {
|
||||
claude.ChatProxy(c, &chatreq)
|
||||
return
|
||||
}
|
||||
|
||||
if strings.HasPrefix(chatreq.Model, "gemini") {
|
||||
google.ChatProxy(c, &chatreq)
|
||||
return
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user