Roo-Code/src/shared
Matt Rubens a64cab92dc
Fix openai cache tracking and cost estimates (#2616)
* fix(api): update cacheReadsPrice for OpenAI GPT-4.1 models (#2887)

Set correct cacheReadsPrice (cached input price) for gpt-4.1, gpt-4.1 mini, and gpt-4.1 nano based on official OpenAI pricing. No changes to cacheWritesPrice as per current OpenAI documentation. This ensures prompt caching costs are accurately reflected for these models in cost calculations.

* Update more OpenAI cache prices

* Track cache tokens and cost correctly for OpenAI

* Update tests

---------

Co-authored-by: monotykamary <tom81094@gmail.com>
2025-04-14 22:55:06 -04:00
..
__tests__ Improve combineApiRequests performance (#2318) 2025-04-05 10:51:00 -07:00
api.ts Fix openai cache tracking and cost estimates (#2616) 2025-04-14 22:55:06 -04:00
array.ts Initial streaming refactor 2024-10-09 01:49:54 -04:00
aws_regions.ts Modification of AWS Bedrock to Amazon Bedrock (#2473) 2025-04-10 15:47:34 -04:00
checkExistApiConfig.ts Automatically generate roo-code.d.ts (including type generation via zod-to-ts) (#2024) 2025-03-27 09:38:56 -07:00
checkpoints.ts Automatically generate roo-code.d.ts (including type generation via zod-to-ts) (#2024) 2025-03-27 09:38:56 -07:00
combineApiRequests.ts Improve combineApiRequests performance (#2318) 2025-04-05 10:51:00 -07:00
combineCommandSequences.ts Improve terminal command execution output parsing 2025-02-28 09:38:48 -08:00
context-mentions.ts Revert "feat @-mention window path style & file with space (#1924)" (#2162) 2025-03-31 15:56:47 -05:00
experiments.ts Remove the experimental unified diff (#2246) 2025-04-02 23:13:46 -04:00
ExtensionMessage.ts feature: Closable welcome message (#2541) 2025-04-13 01:16:01 -04:00
getApiMetrics.ts Automatically generate roo-code.d.ts (including type generation via zod-to-ts) (#2024) 2025-03-27 09:38:56 -07:00
globalFileNames.ts feat: Add file context tracking system (#2440) 2025-04-10 10:56:52 -04:00
HistoryItem.ts Automatically generate roo-code.d.ts (including type generation via zod-to-ts) (#2024) 2025-03-27 09:38:56 -07:00
language.ts Automatically generate roo-code.d.ts (including type generation via zod-to-ts) (#2024) 2025-03-27 09:38:56 -07:00
mcp.ts Support project level mcp (#1841) 2025-03-27 00:23:39 -04:00
modes.ts Automatically generate roo-code.d.ts (including type generation via zod-to-ts) (#2024) 2025-03-27 09:38:56 -07:00
storagePathManager.ts Internationalization support for custom storage path functionality (#1957) 2025-03-24 21:48:26 -04:00
support-prompt.ts Tweaks to support prompt line number format (#2121) 2025-03-30 14:28:34 -04:00
TelemetrySetting.ts Add telemetry and privacy policy 2025-03-07 03:03:44 -05:00
tool-groups.ts Automatically generate roo-code.d.ts (including type generation via zod-to-ts) (#2024) 2025-03-27 09:38:56 -07:00
vsCodeSelectorUtils.ts Prettier backfill 2025-01-17 14:11:28 -05:00
WebviewMessage.ts feature: Closable welcome message (#2541) 2025-04-13 01:16:01 -04:00