feat: report cache write tokens from anthropic oai adapter (#8210)
This commit is contained in:
parent
ae0af67e1a
commit
c297e443a7
1 changed files with 3 additions and 1 deletions
|
|
@ -322,7 +322,9 @@ export class AnthropicApi implements BaseLlmApi {
|
|||
prompt_tokens: usage?.input_tokens ?? 0,
|
||||
prompt_tokens_details: {
|
||||
cached_tokens: usage?.cache_read_input_tokens ?? 0,
|
||||
},
|
||||
cache_read_tokens: usage?.cache_read_input_tokens ?? 0,
|
||||
cache_write_tokens: usage?.cache_creation_input_tokens ?? 0,
|
||||
} as any,
|
||||
},
|
||||
choices: [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue