Small adaptations

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto 2024-12-27 18:39:56 +01:00
parent 06e438d68b
commit c526f05de5
5 changed files with 26 additions and 9 deletions

View file

@ -2,7 +2,6 @@ package routes
import (
"github.com/gofiber/fiber/v2"
"github.com/gofiber/websocket/v2"
"github.com/mudler/LocalAI/core/application"
"github.com/mudler/LocalAI/core/http/endpoints/localai"
"github.com/mudler/LocalAI/core/http/endpoints/openai"
@ -13,7 +12,7 @@ func RegisterOpenAIRoutes(app *fiber.App,
// openAI compatible API endpoint
// realtime
app.Get("/v1/realtime", websocket.New(openai.RegisterRealtime(cl, ml, appConfig)))
app.Get("/v1/realtime", openai.Realtime(application))
// chat
app.Post("/v1/chat/completions",