Expand description
Axum-based HTTP server implementation for Ferrum
This module provides a concrete implementation of the HttpServer trait using the Axum web framework, with OpenAI-shaped endpoint compatibility.
Structs§
- AppState
- Application state shared across handlers — one optional engine per modality. Handlers reach into the field they need and 503 when it’s not loaded.
- Axum
Server - Axum-based server implementation.
Functions§
- default_
chat_ sampling_ params - Product defaults used when an OpenAI chat request omits sampling fields. The engine composition root consumes the same typed value so its resolved startup plan cannot describe different defaults from the HTTP endpoint.
- init_
prometheus_ recorder - Initialize the Prometheus metrics recorder.