pub fn server(config: Config, text_generation: Option<TextGeneration>) -> Router
Expand description

Creates and configures the Axum web server with various routes and Swagger UI.

This function sets up all the necessary routes for the API and merges them with the Swagger UI for easy API documentation and testing.

Arguments

  • config - Configuration settings for the server.

Returns

An instance of axum::Router configured with all routes and the Swagger UI.