Skip to content

fix(openrouter): use model context length#3088

Open
snvtac wants to merge 1 commit into
anomalyco:devfrom
snvtac:snvtac/2796-openrouter-context-length
Open

fix(openrouter): use model context length#3088
snvtac wants to merge 1 commit into
anomalyco:devfrom
snvtac:snvtac/2796-openrouter-context-length

Conversation

@snvtac

@snvtac snvtac commented Jul 7, 2026

Copy link
Copy Markdown

Summary

  • use OpenRouter model-level context_length for synced limit.context
  • keep top_provider.max_completion_tokens as the output limit source
  • update the current xiaomi/mimo-v2.5 OpenRouter TOML by removing the stale 32K context override
  • add regression coverage for shorter top_provider.context_length values

Fixes #2796.

Validation

  • bun test packages/core/test/sync.test.ts
  • bun run test from packages/sdk
  • bun validate
  • git diff --check
  • bun models:sync openrouter --dry-run / bun models:sync openrouter showed the target xiaomi/mimo-v2.5.toml data fix; unrelated live OpenRouter catalog drift was not included

Known existing failure

  • bun test still fails catalog generation > repository open-weight model metadata includes weights links because existing model metadata entries are missing weights links (for example nvidia/nemotron-3-super-120b-a12b and related entries).

@snvtac snvtac force-pushed the snvtac/2796-openrouter-context-length branch from 108ad39 to c7990b3 Compare July 7, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenRouter provider context length uses top_provider.context_length instead of model-level context_length

1 participant