Skip to main content

Module axum_server

Module axum_server 

Source
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.
AxumServer
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.