-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.Someone is actively working on this. Should link to a PR soon.bugSomething isn't workingSomething isn't working
Description
App Version
3.16.4
API Provider
OpenRouter
Model Used
Llama 4 Scout
Actual vs. Expected Behavior
Current Behavior:
src/api/providers/openrouter.tsusesrawModel.context_length(model-level context window)- This causes incorrect context window display when different providers support different sizes for the same model
Expected Behavior:
- Should use provider-specific context window size (
endpoint.context_length) - As correctly implemented in
webview-ui/src/components/ui/hooks/useOpenRouterModelProviders.ts
Impact:
- Leads to incorrect token limit calculations
- May cause unexpected behavior when provider's actual context window is smaller than displayed
Detailed Steps to Reproduce
Reproduction Steps:
- Create an OpenRouter profile
- Select Llama 4 Scout model
- Choose Cerebras provider (32k tokens context window)
- Observe task header shows 1M tokens (model default) instead of 32k
dosubot
Metadata
Metadata
Assignees
Labels
Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.Someone is actively working on this. Should link to a PR soon.bugSomething isn't workingSomething isn't working