INNER CODE UNIT · Python
start
cubist38/mlx-openai-server · app/main.py:255
async def start(config: MLXServerConfig) -> None:
"""Run the ASGI server using the provided configuration.
This coroutine wires the configuration into the server setup
routine, logs progress, and starts the Uvicorn server. It handles
KeyboardInterrupt and logs any startup failures before exiting the
process with a non-zero code.
Parameters
----------
config : MLXServerConfig
Single-model server configuration.
"""
try:
_apply_sampling_env(config)
# Display startup information
print_startup_banner(config)