add realtime proxy

This commit is contained in:
Sakurasan committed 2024-10-06 00:44:48 +08:00
1 parent eef24913e0
commit 236dffa256
9 files changed
+329 -278

No files matched your search

+7 -2
View File
@@ -93,12 +93,17 @@ func HandleProxy(c *gin.Context) {
return
}
if c.Request.URL.Path == "/v1/audio/speech" {
oai.SpeechHandler(c)
oai.SpeechProxy(c)
return
}
if c.Request.URL.Path == "/v1/images/generations" {
oai.DalleHandler(c)
oai.DallEProxy(c)
return
}
if c.Request.URL.Path == "/v1/realtime" {
oai.RealTimeProxy(c)
return
}