Skip to content

Commit

Permalink
Don't strip messages from user (#848)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitenite authored Dec 4, 2024
1 parent 641c89c commit 0b68939
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions apps/studio/src/lib/editor/engine/chat/conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,7 @@ export class ChatConversationImpl implements ChatConversation {

getCoreMessages() {
const messages: CoreMessage[] = this.messages
.map((m, index) => {
if (index === this.messages.length - 1) {
return m.toCurrentMessage();
} else {
return m.toPreviousMessage();
}
})
.map((m) => m.toCurrentMessage())
.filter((m) => m !== undefined && m.content !== '');
return messages;
}
Expand Down

0 comments on commit 0b68939

Please sign in to comment.