fix(models): route all chat models through OpenRouter#14
Merged
AndrewKirkovski merged 1 commit intoJun 11, 2026
Merged
Conversation
This repo is OpenRouter-only: .env sets OPENAI_COMPAT_API_KEY /
OPENAI_COMPAT_BASE_URL, while ANTHROPIC_API_KEY / OPENAI_API_KEY are not
set. A prior merge ("took master's refreshed model set") reverted the
Claude/OpenAI models back to the native wippy.llm.claude / wippy.llm.openai
providers, which broke chat with "Claude API key is required".
Re-route opus / sonnet / haiku / gpt-5.x to wippy.llm.openai_compat with
OpenRouter model ids (anthropic/claude-*, openai/gpt-5.*). Verified each
id against the live OpenRouter model list. text-embedding-3-small stays on
native OpenAI (OpenRouter has no embedding models).
Added a DO NOT REVERT comment documenting the OpenRouter-only constraint.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Chat fails with "Error occurred: Claude API key is required". This repo is OpenRouter-only —
.envprovidesOPENAI_COMPAT_API_KEY/OPENAI_COMPAT_BASE_URL(OpenRouter), andANTHROPIC_API_KEY/OPENAI_API_KEYare intentionally unset. But the default chat modelclaude-sonnet-4-6(andclaude-opus-4-6+ thegpt-5.xmodels) routed to the nativewippy.llm.claude/wippy.llm.openaiproviders, which require their own keys.Root cause: merge
2c767de("Merge origin/master into feat/facade-theming-e2e") resolved themodels/_index.yamlconflict by "took master's refreshed model set", which reverted the OpenRouter routing that commitf4fceb3had applied.Fix
Route all chat/LLM models through
wippy.llm.openai_compat:providerwith OpenRouter model ids:claude-opus-4-6anthropic/claude-opus-4.6claude-sonnet-4-6anthropic/claude-sonnet-4.6claude-haiku-4-5anthropic/claude-haiku-4.5(already)gpt-5.5/gpt-5.4/gpt-5.4-nano/gpt-5.3-codexopenai/…