Expand description
Onwards - A flexible LLM proxy library
This library provides the core functionality for proxying requests to various LLM endpoints with support for authentication, model routing, and dynamic configuration.
Modules§
Structs§
- AppState
- The main application state containing the HTTP client and targets configuration
Functions§
- build_
metrics_ layer_ and_ handle - Builds a layer and handle for prometheus metrics collection.
- build_
metrics_ router - Builds a router for the metrics endpoint.
- build_
router - Build the main router for the proxy This creates routes for:
- extract_
model_ from_ request - Extract the model name from a request