GPT-5 finding
Mistral provider has empty ping_url, causing invalid URL fetch and permanent unhealthy state
mediumbughigh
- python/smart_router.py
- python/smart_router.py
When MISTRAL_API_KEY is set, is_configured is True and _ping_provider will attempt GET on an empty string URL, which raises and marks the provider unhealthy. This prevents routing to Mistral even if configured correctly.
Recommendation
Provide a valid Mistral health endpoint (e.g., https://api.mistral.ai/v1/models) in build_default_providers, or modify _ping_provider to skip pinging when ping_url is empty or invalid.