Skip to content

Commit

Permalink
fix(server): one more unsupported operation
Browse files Browse the repository at this point in the history
  • Loading branch information
astappiev committed Feb 22, 2024
1 parent 2dd1213 commit f6d4875
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private Uni<Void> persistMessages(final Chat chat, final List<Message> queryMess

private Uni<CompletionResults> generateTitle(final Chat chat) {
CompletionQuery query = new CompletionQuery();
query.setMessages(chat.getMessages().stream().map(ChatMessage::toMessage).toList());
query.setMessages(new ArrayList<>(chat.getMessages().stream().map(ChatMessage::toMessage).toList()));
query.addMessage("Give a short name for this conversation; don't use any formatting; length between 80 and 120 characters", Message.Role.user);
return chatService.completions(query);
}
Expand Down

0 comments on commit f6d4875

Please sign in to comment.