routes
routes
¶
Route handlers for the OpenAI-compatible API server.
Classes¶
Functions¶
chat_completions
async
¶
Handle chat completion requests (streaming and non-streaming).
Source code in src/openjarvis/server/routes.py
list_models
async
¶
List available models from the engine.
Source code in src/openjarvis/server/routes.py
savings
async
¶
Return savings summary compared to cloud providers.
Only includes telemetry from the current server session so that counters start at zero each time a new model + agent is launched.
Source code in src/openjarvis/server/routes.py
server_info
async
¶
Return server configuration: model, agent, engine.
Source code in src/openjarvis/server/routes.py
health
async
¶
Health check endpoint.
Source code in src/openjarvis/server/routes.py
list_channels
async
¶
List available messaging channels.
Source code in src/openjarvis/server/routes.py
channel_send
async
¶
Send a message to a channel.
Source code in src/openjarvis/server/routes.py
channel_status
async
¶
Return channel bridge connection status.