Compare commits
1 Commits
dev
...
ad8ece55e5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad8ece55e5 |
@@ -16,6 +16,7 @@ import (
|
|||||||
"net/http/httputil"
|
"net/http/httputil"
|
||||||
"net/url"
|
"net/url"
|
||||||
"opencatd-open/pkg/azureopenai"
|
"opencatd-open/pkg/azureopenai"
|
||||||
|
"opencatd-open/pkg/claude"
|
||||||
"opencatd-open/store"
|
"opencatd-open/store"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
@@ -472,6 +473,9 @@ 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" {
|
||||||
|
claude.ClaudeProxy(c)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if c.Request.URL.Path == "/v1/chat/completions" && localuser {
|
if c.Request.URL.Path == "/v1/chat/completions" && localuser {
|
||||||
|
|||||||
Reference in New Issue
Block a user