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