Add cost calculation from model pricing

t-435·WorkTask·
·
·
Created1 month ago·Updated1 month ago

Description

Edit

Providers currently don't calculate cost (usageCost=Nothing). Need to add a pricing table for models and compute cost from token usage.

Timeline (4)

🔄[human]Open → InProgress1 month ago
💬[human]1 month ago

Added ModelPricing table with per-million token costs for Claude/GPT/Codex models. calculateCost function computes cost in cents from usage. Cost now shows in trace events and budget enforcement works.

🔄[human]InProgress → Done1 month ago