assistant2: Include previous messages in the thread in the completion request (#21184)

This PR makes it so previous messages in the thread are included when
constructing the completion request, instead of only sending up the most
recent user message.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-11-25 16:51:32 -05:00 committed by GitHub
parent e7b0047562
commit 2b9250843c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 58 additions and 46 deletions

View file

@ -234,7 +234,7 @@ impl Render for AssistantPanel {
.p_2()
.overflow_y_scroll()
.bg(cx.theme().colors().panel_background)
.children(self.thread.read(cx).messages.iter().map(|message| {
.children(self.thread.read(cx).messages().map(|message| {
v_flex()
.p_2()
.border_1()