INNER CODE UNIT · Python

status

SPThole/CoexistAI · app.py:296

async def status():
        """Return basic app startup/reload status for UI and health checks."""
        return app_state


@app.get('/admin/config')
async def admin_get_config():
    """Return the effective model_config plus helper globals for the admin UI."""
    # safe copy of model
    # include openai_compatible and host/port defaults
    def _mask(s):
        try:
            if not s:
                return ''
            s = str(s)
            if len(s) <= 6:
                return '*' * len(s)
            return s[:3] + '...' + s[-3:]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…