We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae0af67 commit c297e44Copy full SHA for c297e44
packages/openai-adapters/src/apis/Anthropic.ts
@@ -322,7 +322,9 @@ export class AnthropicApi implements BaseLlmApi {
322
prompt_tokens: usage?.input_tokens ?? 0,
323
prompt_tokens_details: {
324
cached_tokens: usage?.cache_read_input_tokens ?? 0,
325
- },
+ cache_read_tokens: usage?.cache_read_input_tokens ?? 0,
326
+ cache_write_tokens: usage?.cache_creation_input_tokens ?? 0,
327
+ } as any,
328
},
329
choices: [
330
{
0 commit comments