test: gateway reports a missing OpenRouter key first; register the model panel in the paid count and test-of-test baseline

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
garrytanandcapy-ai[bot] committed 2026-10-30 01:29:22 +00:00
1 parent b690383da5
commit 3340d95ea2
3 files changed
+5 -4

No files matched your search

+3 -3
View File
@@ -72,12 +72,12 @@ export class GatewayAdapter implements ProviderAdapter {
}
async available(): Promise<AvailabilityCheck> {
if (!resolveClaudeCommand()) {
return { ok: false, reason: 'claude CLI not found on PATH (the gateway arms run in Claude Code). Install: npm i -g @anthropic-ai/claude-code' };
}
if (!this.source[GATEWAY_KEY_ENV]) {
return { ok: false, reason: `${GATEWAY_KEY_ENV} is not set. Create a key at https://openrouter.ai/keys and export it.` };
}
if (!resolveClaudeCommand()) {
return { ok: false, reason: 'claude CLI not found on PATH (the gateway arms run in Claude Code). Install: npm i -g @anthropic-ai/claude-code' };
}
return { ok: true };
}