openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Model 'reasoning-v1' not found on custom_openai provider

Open graycyrus opened this issue 6 months ago • 1 comments

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

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_openai provider
  • The model reasoning-v1 is 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

  1. Validate model availability on provider setup — call the models endpoint and verify the selected model exists
  2. Better error message — surface "model not found on your custom provider" in the UI instead of a generic failure
  3. Graceful fallback — if the selected model isn't available, fall back to a known-good model or prompt the user to reconfigure

Priority: High

graycyrus avatar May 13 '26 07:05 graycyrus

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.

obchain avatar May 14 '26 07:05 obchain