fix(ui): Re-add Chat

This commit is contained in:
Richard Palethorpe
2025-03-27 21:23:17 +00:00
parent c96c8d8009
commit 45078e1fa7
7 changed files with 393 additions and 104 deletions

View File

@@ -134,6 +134,9 @@ func (app *App) registerRoutes(pool *state.AgentPool, webapp *fiber.App) {
webapp.Delete("/api/agent/:name", app.Delete(pool))
webapp.Put("/api/agent/:name/pause", app.Pause(pool))
webapp.Put("/api/agent/:name/start", app.Start(pool))
// Add JSON-based chat API endpoint
webapp.Post("/api/chat/:name", app.ChatAPI(pool))
webapp.Post("/v1/responses", app.Responses(pool))