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
- prompt_tokens is now inclusive of cache read/write (OpenAI contract);
OpenCode derives the non-cached count by subtracting the details
- surface cost_usd from the gateway finish event, with an estimated
fallback from advertised $/1M rates when the gateway omits it
- parse advertised $/1M rates from models.md and set provider model.cost
(was zeroCost), so OpenCode computes real message costs
- forward usage before parking tool-call turns instead of emitting
prompt_tokens:0 that overwrote OpenCode's session meter
- drop empty usage chunks (zero prompt+completion) instead of emitting them
0 commit comments