Model 'reasoning-v1' not found on custom_openai provider
Summary
Users connecting a custom OpenAI-compatible provider and selecting model reasoning-v1 get 404 errors because the model ID doesn't exist on their provider. The agent fails with no fallback.
Sentry Issues
- OPENHUMAN-TAURI-C1 — 3 events (agent.run_single)
- OPENHUMAN-TAURI-C0 — 3 events (streaming_chat)
- OPENHUMAN-TAURI-BZ — 3 events (web_channel)
- OPENHUMAN-TAURI-BY — 3 events (responses_api)
Error: custom_openai API error (404 Not Found): {"error":{"message":"model 'reasoning-v1' not found","type":"not_found_error"}}
Environment: production
Affected user: Single user in Russia (Surgut), all 12 events within ~2 minutes
Analysis
- All events come from the same user session using a
custom_openaiprovider - The model
reasoning-v1is configured but doesn't exist on their endpoint - The error cascades through streaming, responses API, agent, and web_channel layers
- The reliable_chat / provider_chat fallback chain is exhausted (related: TAURI-CB, TAURI-CA)
Suggested Improvements
- Validate model availability on provider setup — call the models endpoint and verify the selected model exists
- Better error message — surface "model not found on your custom provider" in the UI instead of a generic failure
- Graceful fallback — if the selected model isn't available, fall back to a known-good model or prompt the user to reconfigure
Priority: High
Picking this up. Going with option 3 (graceful fallback). Plan: wrap the custom_openai OpenAiCompatibleProvider in the existing ReliableProvider with a small built-in fallback chain so a 404/model-not-found on the configured model rolls to the next slug instead of cascading. Mirrors the per-model fallback infra already used elsewhere (ReliableProvider::with_model_fallbacks). PR up shortly.