mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-14 22:14:23 +00:00
collab: Set cached token values when initially creating lifetime usage records (#18865)
This PR fixes an issue where we weren't setting the cached token fields when initially creating a lifetime usage record. Release Notes: - N/A
This commit is contained in:
parent
77bf2ad0f1
commit
3f2de172ae
1 changed files with 4 additions and 0 deletions
|
@ -382,6 +382,10 @@ impl LlmDatabase {
|
|||
user_id: ActiveValue::set(user_id),
|
||||
model_id: ActiveValue::set(model.id),
|
||||
input_tokens: ActiveValue::set(input_token_count as i64),
|
||||
cache_creation_input_tokens: ActiveValue::set(
|
||||
cache_creation_input_tokens as i64,
|
||||
),
|
||||
cache_read_input_tokens: ActiveValue::set(cache_read_input_tokens as i64),
|
||||
output_tokens: ActiveValue::set(output_token_count as i64),
|
||||
..Default::default()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue