Add low_tokens_remaining
case to the assistant
This commit is contained in:
parent
d6112e4a59
commit
77b120323b
2 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue