feat: add cost estimates
Resolved 💬 2 comments Opened Apr 18, 2025 by ArchitRastogi20 Closed Apr 19, 2025
💡 Likely answer: A maintainer (tibo-openai, collaborator)
responded on this thread — see the highlighted reply below.
A cost estimation feature that does one or more of the following:
- Post-operation cost summary – After a code generation task is completed, display an estimate of the tokens used and the corresponding API cost.
- Pre-operation cost preview – Based on the prompt size or estimated tokens, show a rough cost estimate before the assistant starts generating code.
- Live cost tracker – For longer or interactive sessions, a running counter showing token usage and estimated cost in real-time would be incredibly useful.
2 Comments
Implementation is pending in #322
Marking as dupe of https://github.com/openai/codex/issues/117