Expand description
HTTP proxy layer — axum router, route handlers, and error mapping.
Exposes an OpenAI-compatible /v1/chat/completions endpoint, a /v1/models
listing, and an Amp CLI compatibility layer under /amp/*.
Re-exports§
pub use usage::UsageStats;
Modules§
- usage
- In-memory usage statistics for request/token tracking.
Structs§
- ApiError
- Wrapper around
ByokErrorthat implementsIntoResponse. - AppState
- Shared application state passed to all route handlers.
Functions§
- make_
router - Build the full axum router.