INNER CODE UNIT · Python

get_model_registry_endpoint

devnen/Kitten-TTS-Server · server.py:277

async def get_model_registry_endpoint():
    """Returns the full list of available models for the UI dropdown."""
    return engine.get_model_registry()


@app.get("/api/model-status", tags=["Model Information"])
async def get_model_status_endpoint():
    """Returns the current download/loading progress for model switching."""
    return engine.get_download_status()


# --- API Endpoint for Initial UI Data ---
@app.get("/api/ui/initial-data", tags=["UI Helpers"])
async def get_ui_initial_data():
    """
    Provides all necessary initial data for the UI to render,
    including configuration, file lists, presets, and model information.
    """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…