language_models: Emit UsageUpdate events for token usage in DeepSeek and OpenAI (#33242)

Closes #ISSUE

Release Notes:

- N/A
This commit is contained in:
Umesh Yadav
2025-06-25 09:42:30 +02:00
committed by GitHub
parent 098896146e
commit 108162423d
4 changed files with 31 additions and 12 deletions
+3 -3
View File
@@ -364,9 +364,9 @@ pub struct FunctionChunk {
#[derive(Serialize, Deserialize, Debug)]
pub struct Usage {
pub prompt_tokens: u32,
pub completion_tokens: u32,
pub total_tokens: u32,
pub prompt_tokens: u64,
pub completion_tokens: u64,
pub total_tokens: u64,
}
#[derive(Serialize, Deserialize, Debug)]