mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-21 11:04:59 +00:00
Small adaptations
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
06e438d68b
commit
c526f05de5
5 changed files with 26 additions and 9 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue