Skip to main content

Crate byokey_proxy

Crate byokey_proxy 

Source
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 ByokError that implements IntoResponse.
AppState
Shared application state passed to all route handlers.

Functions§

make_router
Build the full axum router.