mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-12 02:02:13 +03:00
Previously, validateOpenAICompatibleProvider and validateAnthropicCompatibleProvider only tried GET /models. Many compatible providers don't expose this endpoint, causing the Check button to show 'Invalid' even with valid credentials. Now both validators follow a 2-step approach: 1. Try GET /models (fast path) 2. If that fails, try a minimal chat/messages request as fallback Any non-auth 4xx response (400, 422) is treated as valid since it means the API key was accepted but the test model wasn't recognized.