Skip to content

fix(providers): update AgentRouter and NVIDIA model catalogs - #72

Open
mahdiwafy wants to merge 3 commits into
Vanszs:mainfrom
mahdiwafy:pr/provider-catalog-fixes
Open

fix(providers): update AgentRouter and NVIDIA model catalogs#72
mahdiwafy wants to merge 3 commits into
Vanszs:mainfrom
mahdiwafy:pr/provider-catalog-fixes

Conversation

@mahdiwafy

Copy link
Copy Markdown

Summary

  • Fixes AgentRouter validate falling into the wrong switch case.
  • Updates AgentRouter model list.
  • Removes stale/unreachable NVIDIA NIM models and refreshes the catalog baseline.

Scope

Focused only on provider catalog / provider validation fixes.

Verification

  • npm run lint:undef

mahdiwafy and others added 3 commits July 29, 2026 22:21
…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>
…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>
@mahdiwafy mahdiwafy closed this Jul 30, 2026
@mahdiwafy
mahdiwafy deleted the pr/provider-catalog-fixes branch July 30, 2026 05:06
@mahdiwafy
mahdiwafy restored the pr/provider-catalog-fixes branch July 30, 2026 05:15
@mahdiwafy mahdiwafy reopened this Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant