INNER CODE UNIT · Python

get_model_info_endpoint

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

async def get_model_info_endpoint():
    """Returns detailed information about the currently loaded TTS model."""
    logger.debug("Request received for /api/model-info")
    try:
        return engine.get_model_info()
    except Exception as e:
        logger.error(f"Error getting model info: {e}", exc_info=True)
        raise HTTPException(status_code=500, detail="Failed to retrieve model information")


@app.get("/api/model-registry", tags=["Model Information"])
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():

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…