mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 12:22:14 +03:00
normalizeDiscoveredModels only copied record.inputTokenLimit, but OpenRouter returns the window as context_length / top_provider.context_length, so every synced model fell back to the 128K default. Read context_length (and top_provider.max_completion_tokens for output) as a fallback. Co-authored-by: pulyankote <pulyankote@users.noreply.github.com>