Skip to content

Commit 9871d78

Browse files
潘婉宁luminghao-bytedance
authored andcommitted
fix: usage tokens
1 parent ff14784 commit 9871d78

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.DS_Store

6 KB
Binary file not shown.

volcenginesdkarkruntime/types/context/context_usage.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ class ContextCompletionUsage(BaseModel):
1717
"""
1818
total_tokens stands for the total tokens of chat completion
1919
"""
20-
prompt_hit_cache_count: Optional[int] = None
20+
prompt_cache_miss_tokens: Optional[int] = None
2121
"""
22-
prompt_hit_cache_count stands for the prompt hit cache count of context chat completion
22+
prompt_cache_miss_tokens stands for the prompt miss cache count of context chat completion
2323
"""
24-
prompt_miss_cache_count: Optional[int] = None
24+
prompt_cache_hit_tokens: Optional[int] = None
2525
"""
26-
prompt_miss_cache_count stands for the prompt miss cache count of context chat completion
26+
prompt_cache_hit_tokens stands for the prompt hit cache count of context chat completion
2727
"""

0 commit comments

Comments
 (0)