fix(providers): update AgentRouter and NVIDIA model catalogs - #72
Open
mahdiwafy wants to merge 3 commits into
Open
fix(providers): update AgentRouter and NVIDIA model catalogs#72mahdiwafy wants to merge 3 commits into
mahdiwafy wants to merge 3 commits into
Conversation
…h label) validate/route.js had two `case "agentrouter":` labels in the same switch. JS only runs the first match, so agentrouter connections were silently validated by the generic glm/kimi/minimax block (bare x-api-key + anthropic-version, no headers) instead of validateAgentRouterConnection()'s Claude-CLI spoof headers. AgentRouter gates on client fingerprint and returns 401 'unauthorized client detected' for any request missing the spoof headers/UA — which the dashboard's Add API Key flow then reported as 'Invalid API key' even for a valid, unrestricted key. Removed agentrouter from the shared fallthrough case so it reaches the dedicated block. Verified live against the real AgentRouter API: the old (buggy) header set gets a genuine 401 from the same key that gets a non-401/403 response through validateAgentRouterConnection(). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ve claude-opus-4-7
…atalog NVIDIA NIM chat/completions returned errors for several registry models: - z-ai/glm-5.1 → HTTP 410 Gone (EOL 2026-07-02). This is the primary failure users hit — the model is globally retired. - moonshotai/kimi-k2.6 (+ none/low/medium/high thinking variants) → HTTP 404 "not found for account": catalog-listed but not served on standard NIM developer keys. suggestedModels also carried dead ids: - z-ai/glm-5.1 (410 EOL), qwen/qwen3.5-397b-a17b (404 account), qwen/qwen3.5-122b-a10b and mistralai/mistral-large-3-675b-instruct-2512 (absent from /v1/models entirely). Replaced with models verified against integrate.api.nvidia.com (present in /v1/models and returning 200 on a real completion): GLM 5.2, DeepSeek V4 Pro/Flash, MiniMax M2.7/M3, GPT-OSS 120B/20B, Llama 4 Maverick, Step 3.7 Flash, Nemotron 3 Ultra/Super 120B, Nemotron Super 49B v1.5. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Scope
Focused only on provider catalog / provider validation fixes.
Verification
npm run lint:undef