Fix token count not appearing for the first message (#30035)
Release Notes: - N/A Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
This commit is contained in:
parent
5002156e32
commit
0fdc04532a
3 changed files with 7 additions and 2 deletions
|
@ -315,6 +315,10 @@ impl MessageEditor {
|
|||
self.editor.read(cx).text(cx).trim().is_empty()
|
||||
}
|
||||
|
||||
pub fn is_editor_fully_empty(&self, cx: &App) -> bool {
|
||||
self.editor.read(cx).is_empty(cx)
|
||||
}
|
||||
|
||||
fn send_to_model(&mut self, window: &mut Window, cx: &mut Context<Self>) {
|
||||
let Some(ConfiguredModel { model, provider }) = self
|
||||
.thread
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue