You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pricing: an OpenRouter model variant such as openai/gpt-6.1-sol:nitro is priced on the fallback curve #313
resolve_model in tokeneconomizer/pricing.py drops a router's provider prefix, because "a router's provider/model id names a ROUTE, not a price". OpenRouter also adds a variant after a colon: :free, :nitro, :floor, :online. Its SDK documentation says it "Supports variant suffixes (e.g. openai/gpt-4:free)" and that "Non-default variants include a :variant suffix".
The variant chooses how the request is routed or billed, not which model runs, but it is kept. So openai/gpt-6.1-sol:nitro finds no price: weights_for raises, and the plugin's ledger prices the session on the fallback curve (0.10x cache hits and 6x output, where gpt-6.1-sol is 0.05x and 5x). Claude ids escape only because they are matched by substring.
Activity