Commit Graph
4 Commits
Author SHA1 Message Date
Alessandro 935fb5cdcc Add context window display controls and price currency selection
Add plugin settings to toggle the full context breakdown and each provider
usage row. Match price typography to the cache and token summary rows.

Keep USD amounts unchanged without exchange-rate requests. Convert non-USD
prices using validated Frankfurter rates cached for 24 hours, with dated
tooltips and an explicit USD fallback when a rate is unavailable. Preserve
stored provider usage and back off failed lookups for five minutes.

Validation: 20 context-window plugin tests pass. Verified settings persistence,
EUR price rendering, USD fallback, and exchange-rate lookup against the live
Docker runtime at localhost:32081.
2026-10-07 23:31:54 +02:00
linkliti 8c6c2b3158 Report provider usage for streamed Chat Completions turns
Inject stream_options.include_usage for every streaming chat request in the transport, retry once without it when a provider rejects the option, and remember the rejection per model configuration until process restart. Remove the OpenRouter-only injection from the context window drain extension and document the shared contract.
2026-09-08 17:53:03 +03:00
Alessandro 4fb3d2555f Add provider accounting to context window
Show provider-reported price, cache hit, and input/output tokens in the context window popover while omitting unavailable price and cache rows.

Drain OpenRouter terminal usage through plugin extensions without changing Responses behavior, and keep prompt-bucket reconciliation accurate.
2026-08-24 17:05:53 +02:00
Alessandro f8c96860c2 Add context window usage indicator
Add a bundled context-window plugin with a composer usage ring, responsive breakdown popover, token counts, percentages, and free-space reporting.

Keep accounting plugin-owned, reuse existing history token counts, cache bounded prompt fragments by content, and expose independent mobile and desktop visibility controls.
2026-08-23 06:08:41 +02:00