add websocket relayer for openai realtime api

This commit is contained in:
RockYang
2024-10-16 18:16:09 +08:00
parent 155c56f502
commit 2102e1afbb
12 changed files with 1337 additions and 624 deletions

View File

@@ -221,6 +221,7 @@ func needLogin(c *gin.Context) bool {
c.Request.URL.Path == "/api/suno/detail" ||
c.Request.URL.Path == "/api/suno/play" ||
c.Request.URL.Path == "/api/download" ||
c.Request.URL.Path == "/api/realtime" ||
strings.HasPrefix(c.Request.URL.Path, "/api/test") ||
strings.HasPrefix(c.Request.URL.Path, "/api/payment/notify/") ||
strings.HasPrefix(c.Request.URL.Path, "/api/user/clogin") ||