mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-03 14:01:30 +01:00
Split token display for OpenAI (#46829)
This feature cost $15. Up -> Tokens we're sending to the model Down -> Tokens we've received from the model. <img width="377" height="69" alt="Screenshot 2026-01-14 at 12 31 01 PM" src="https://github.com/user-attachments/assets/fc15824f-de5d-466b-8cc1-329f3c1940bb" /> Release Notes: - Changed the display of tokens for OpenAI models to reflect the input/output limits. --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b5b13d1f4d
commit
9c5fc6ecbd
8 files changed
+137
-37
No files matched your search
@@ -617,6 +617,12 @@ pub trait LanguageModel: Send + Sync {
|
||||
false
|
||||
}
|
||||
|
||||
/// Returns whether this model/provider reports accurate split input/output token counts.
|
||||
/// When true, the UI may show separate input/output token indicators.
|
||||
fn supports_split_token_display(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
fn tool_input_format(&self) -> LanguageModelToolSchemaFormat {
|
||||
LanguageModelToolSchemaFormat::JsonSchema
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user