Use generic OPENROUTER_* env vars (OPENROUTER_API_KEY, OPENROUTER_BASE_URL, OPENROUTER_MODEL) via the existing fallback mechanism instead of hardcoding mappings to OPENAI_* vars. Also add a guard when resolveModel returns undefined to throw a clear error instead of crashing on property access. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| agent | ||
| client | ||
| console | ||
| gateway | ||
| hub | ||
| shared | ||
| index.ts | ||