add realtime proxy

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

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
}