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

@@ -554,6 +554,10 @@ func main() {
group.POST("/list/luma", h.LumaList)
group.GET("/remove", h.Remove)
}),
fx.Provide(handler.NewRealtimeHandler),
fx.Invoke(func(s *core.AppServer, h *handler.RealtimeHandler) {
s.Engine.Any("/api/realtime", h.Connection)
}),
)
// 启动应用程序
go func() {