mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-26 09:54:19 +01:00
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:
1 parent
b690383da5
commit
3340d95ea2
3 files changed
+5
-4
No files matched your search
@@ -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 };
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user