Module server

Module server 

Source
Expand description

Server implementation for the OpenAI-compatible API

Structs§

AppState
Server state shared across all requests
Args
Command line arguments for server configuration
ChatCompletionRequest
Chat completion request (OpenAI compatible)
Choice
Chat completion response choices (OpenAI compatible)
ContentBlock
Structured content block
ContentObject
Content object with type and other fields
Message
Chat message structure (OpenAI compatible)
MessageInner
OpenAIResponse
Base response structure for OpenAI-compatible API
Usage
Token usage information

Enums§

ContentValue
Content value can be string, array of strings, or structured content

Functions§

run
Start the Axum server
run_with_args
Start the Axum server with provided arguments