/api/generate
POST
Proxies non-streaming requests to the downstream service to generate a response based on the given model and prompt.
{ "model": "string", "prompt": "string" }
Returns the generated response in JSON format.
/api/generate-stream
POST
Proxies streaming requests to the downstream service to generate a response based on the given model and prompt.
{ "model": "string", "prompt": "string" }
Streams the generated response.
/api/queue-status
GET
Returns the current position of the client in the queue and the total number of clients in the queue.
{ "position": "number", "total": "number" }
/
GET
Serves the landing page for the application.