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
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | |
list_models
async
¶
List available models from the engine.
Source code in src/openjarvis/server/routes.py
pull_model
async
¶
Pull / download a model from the Ollama registry.
Source code in src/openjarvis/server/routes.py
delete_model
async
¶
Delete a model from Ollama.
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
reset_telemetry
async
¶
Clear all stored telemetry records.
Useful after updating token-counting methodology — clears historical records that were computed under the old rules so that the savings dashboard and leaderboard submissions start fresh with corrected values.
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.
Source code in src/openjarvis/server/routes.py
security_scan
async
¶
Run a read-only security environment audit and return findings.