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 13:12:30 +05:30 committed by GitHub
parent 098896146e
commit 108162423d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 31 additions and 12 deletions

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)]