Roo-Code/src
Daniel Trugman d6184e9dac
OpenAI & DeepSeek cost calculation (#1864)
* Add OpenAI compatible cost calculation

* Requesty: Prepare for correct price calculation

* Native OpenAI: Update model caching info

According to [OpenAI's
website](https://platform.openai.com/docs/guides/prompt-caching),
gpt-4o, gpt-4o-mini, o1-preview and o1-mini support caching.

For gpt-4o, even though gpt-4o-2024-05-13 and
chatgpt-4o-latest do no support caching, users will see there are no
cached tokens, which will help avoid confusion.

* Native OpenAI: Call getModel once

* Native OpenAI: Extract yield usage into method

* Native OpenAI: Add caching and cost info to task header

* DeepSeek: Add cost info to task header

* Add changeset
2025-02-28 11:25:17 -08:00
..
api OpenAI & DeepSeek cost calculation (#1864) 2025-02-28 11:25:17 -08:00
core OpenAI & DeepSeek cost calculation (#1864) 2025-02-28 11:25:17 -08:00
exports chore: Prettier fix formatting 2025-01-06 12:41:33 -08:00
integrations Revert "Better Streaming Support (#1980)" (#1993) 2025-02-27 15:50:02 -08:00
services add optional telemetry (#1939) 2025-02-27 15:40:47 -08:00
shared OpenAI & DeepSeek cost calculation (#1864) 2025-02-28 11:25:17 -08:00
test Check git out - Checkpoints 2.0 2025-02-27 15:40:52 -08:00
utils OpenAI & DeepSeek cost calculation (#1864) 2025-02-28 11:25:17 -08:00
extension.ts Add optional opt-in telemetry to help fix bugs and improve product 2025-02-25 15:23:38 -08:00