mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-19 07:28:08 +00:00
@ -88,7 +88,7 @@ func API(application *application.Application) (*fiber.App, error) {
|
||||
|
||||
router := fiber.New(fiberCfg)
|
||||
|
||||
router.Use(func(c *fiber.Ctx) error {
|
||||
router.Use("/v1/realtime", func(c *fiber.Ctx) error {
|
||||
if websocket.IsWebSocketUpgrade(c) {
|
||||
// Returns true if the client requested upgrade to the WebSocket protocol
|
||||
return c.Next()
|
||||
|
Reference in New Issue
Block a user