mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix: update requesty provider to use new calculateApiCostOpenAI signature
This commit is contained in:
parent
427fbec10d
commit
1c1ed4ea46
1 changed files with 2 additions and 2 deletions
|
|
@ -85,9 +85,9 @@ export class RequestyHandler extends BaseProvider implements SingleCompletionHan
|
|||
const outputTokens = requestyUsage?.completion_tokens || 0
|
||||
const cacheWriteTokens = requestyUsage?.prompt_tokens_details?.caching_tokens || 0
|
||||
const cacheReadTokens = requestyUsage?.prompt_tokens_details?.cached_tokens || 0
|
||||
const { totalCost } = modelInfo
|
||||
const totalCost = modelInfo
|
||||
? calculateApiCostOpenAI(modelInfo, inputTokens, outputTokens, cacheWriteTokens, cacheReadTokens)
|
||||
: { totalCost: 0 }
|
||||
: 0
|
||||
|
||||
return {
|
||||
type: "usage",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue