Skip to content

fix(providers): add TokenRouter connection test support - #3191

Open
cokkyturnip wants to merge 2 commits into
decolua:masterfrom
cokkyturnip:fix/tokenrouter-provider-test
Open

cokkyturnip wants to merge 2 commits into
decolua:masterfrom
cokkyturnip:fix/tokenrouter-provider-test

Conversation

@cokkyturnip

Copy link
Copy Markdown
Contributor

Description

TokenRouter reported Provider test not supported (403) when attempting to test the provider connection from the dashboard, even though model inference was fully functional. This occurred because the provider was omitted in the testApiKeyConnection dispatcher and fell through to the default error.

This PR adds support for TokenRouter in provider testing by probing its OpenAI-compatible /v1/models endpoint.

Changes

  • Added tokenrouter case to testApiKeyConnection in src/app/api/providers/[id]/test/testUtils.js to validate keys against its /v1/models endpoint.

golamrabbi696 added a commit to golamrabbi696/EzRouter that referenced this pull request Aug 11, 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