This commit is contained in:
c菌
2023-08-14 00:11:42 +08:00
parent 678928cafd
commit 6ca8c0b69b

View File

@@ -472,8 +472,12 @@ func HandleProy(c *gin.Context) {
if c.Request.URL.Path == "/v1/audio/transcriptions" { if c.Request.URL.Path == "/v1/audio/transcriptions" {
WhisperProxy(c) WhisperProxy(c)
return return
}else if c.Request.URL.Path == "/v1/complete"{
ClaudeProxy(c)
return
} }
if c.Request.URL.Path == "/v1/chat/completions" && localuser { if c.Request.URL.Path == "/v1/chat/completions" && localuser {
if store.KeysCache.ItemCount() == 0 { if store.KeysCache.ItemCount() == 0 {
c.JSON(http.StatusBadGateway, gin.H{"error": gin.H{ c.JSON(http.StatusBadGateway, gin.H{"error": gin.H{