Repository navigation
feat(providers): add OpenRouter aggregator support - #987
Merged
Merged
Conversation
Colafornia
marked this pull request as draft
July 14, 2026 15:23
apache#860 Phase 3) Mirrors the DeepInfra template: models.dev facts + registry entry, per-model thinkingOptions, the reasoning_effort wire (off maps to none), headless credential env, a byte-exact Lobe Icons color mark, and tests across every workspace. OpenRouter's /api/v1/models response carries no type field, so model discovery uses the fallback-models filter; the base URL already includes /api/v1, so the models endpoint is the default \${baseUrl}/models (no explicit discovery path). Default model is anthropic/claude-sonnet-5. Co-Authored-By: Claude <[email protected]>
Colafornia
force-pushed
the
feat/add-openrouter
branch
from
July 14, 2026 15:57
75205b6 to
2597738
Compare
Colafornia
marked this pull request as ready for review
July 14, 2026 16:00
Astro-Han
approved these changes
Jul 14, 2026
Astro-Han
left a comment
Contributor
There was a problem hiding this comment.
Approving — independently reviewed and cross-checked with a second reviewer. Registry placement mirrors peer aggregators, exact model-id preservation, credential isolation (both turns Bearer-scoped, no cross-provider leakage), the two-stage tool loop, and the brand-asset gate all hold — openrouter.svg is byte-identical to lobe-icons upstream and correctly rendered as a color mark via the COLOR_ASSET_RENDER_CONTRACT <img> seam (not the monochrome mask). Non-blocking follow-ups:
- [P2] OpenRouter + Anthropic thinking sends top-level
reasoning_effort; OpenRouter prefers nestedreasoning: { effort }for Anthropic, so effort may silently no-op on the defaultanthropic/claude-sonnet-5at thinking tiers (it will not 400). Switching to the nested shape is the higher-value fix. - [P3] No
reasoning_detailsreplay for Claude-via-OpenRouter (only ZenMux setsreplayAssistantReasoningDetails); OpenRouter tolerates absence per its docs (strongly recommended, not required), so this degrades reasoning-continuity quality across tool turns, not correctness. - [P3]
THIRD_PARTY_LICENSES.txtlists the OpenRouter asset under the@lobehub/[email protected]section header while the code/tests declare1.92.0; reconcile the version label (the commit SHA and SHA-256 are already correct and consistent).
This was referenced Jul 14, 2026
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.
Summary
Validation
npm run typechecknpm --workspace @maka/core testnpm --workspace @maka/storage testnpm --workspace @maka/runtime testnpm --workspace @maka/desktop testgit diff --check