Add low_tokens_remaining case to the assistant

This commit is contained in:
Nate Butler 2023-06-29 17:44:47 -04:00
parent d6112e4a59
commit 77b120323b
2 changed files with 3 additions and 0 deletions

View file

@ -2060,6 +2060,8 @@ impl ConversationEditor {
let remaining_tokens = self.conversation.read(cx).remaining_tokens()?;
let remaining_tokens_style = if remaining_tokens <= 0 {
&style.no_remaining_tokens
} else if remaining_tokens <= 500 {
&style.low_remaining_tokens
} else {
&style.remaining_tokens
};