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:
parent
e7b0047562
commit
2b9250843c
3 changed files with 58 additions and 46 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue