copilot: Remove PromptTokensDetails from Usage struct (#33029)
Closes #33024 Release Notes: - Removed `PromptTokensDetails` from `Usage` as Gemini no longer supplies cached token data for copilot.
This commit is contained in:
parent
0b228ad12c
commit
1f736ed693
1 changed files with 0 additions and 6 deletions
|
@ -318,15 +318,9 @@ pub struct ResponseEvent {
|
|||
pub struct Usage {
|
||||
pub completion_tokens: u64,
|
||||
pub prompt_tokens: u64,
|
||||
pub prompt_tokens_details: PromptTokensDetails,
|
||||
pub total_tokens: u64,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
pub struct PromptTokensDetails {
|
||||
pub cached_tokens: u64,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
pub struct ResponseChoice {
|
||||
pub index: usize,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue