ZIm/crates/assistant/src
Kirill Bulatov a31dba9fc1
Reflect token limit errors and warnings in the assistant panel Send button style (#15529)
When used token count is below 80%, the Send button is displayed as
usual: no tooltip, regular style:


![image](https://github.com/user-attachments/assets/06198869-c49e-4231-b0cb-53b8f678c547)

When it exceeds 80% but below the `max_tokens` threshold, the button
starts to show as a warning, with the corresponding tooltip:

![warning](https://github.com/user-attachments/assets/83b02059-9610-4af7-97c6-9bca14364511)

When it is over the `max_token` threshold, the button starts to show as
an error, with another tooltip:

![error](https://github.com/user-attachments/assets/380d426a-cda9-4479-83e0-e018771291b6)

The buttons are not blocked in any case, in case the token calculation
is wrong, to allow using the assistant panel nonetheless.


Release Notes:

- N/A
2024-07-31 14:37:39 +03:00
..
slash_command Add more context to the terminal assistant (#15492) 2024-07-30 20:21:45 +03:00
system_prompts Allow the assistant to suggest edits to files in the project (#11993) 2024-05-17 15:38:14 -07:00
assistant.rs Add more context to the terminal assistant (#15492) 2024-07-30 20:21:45 +03:00
assistant_panel.rs Reflect token limit errors and warnings in the assistant panel Send button style (#15529) 2024-07-31 14:37:39 +03:00
assistant_settings.rs Allow customization of the model used for tool calling (#15479) 2024-07-30 16:18:53 +02:00
context.rs Allow customization of the model used for tool calling (#15479) 2024-07-30 16:18:53 +02:00
context_store.rs assistant: Allow guests to create new contexts on the host (#15439) 2024-07-29 12:01:09 -04:00
inline_assistant.rs Allow customization of the model used for tool calling (#15479) 2024-07-30 16:18:53 +02:00
model_selector.rs assistant: Ensure that zed provider is listed as first option (#15496) 2024-07-30 19:38:52 +02:00
prompt_library.rs Allow customization of the model used for tool calling (#15479) 2024-07-30 16:18:53 +02:00
prompts.rs Add more context to the terminal assistant (#15492) 2024-07-30 20:21:45 +03:00
slash_command.rs Introduce /symbols command in assistant panel (#14360) 2024-07-15 11:51:32 +02:00
streaming_diff.rs Allow AI interactions to be proxied through Zed's server so you don't need an API key (#7367) 2024-03-19 19:22:26 +01:00
terminal_inline_assistant.rs Add more context to the terminal assistant (#15492) 2024-07-30 20:21:45 +03:00