Skip to content

Commit

Permalink
🚸 (openai) Make sure annotations are removed from assistant replies
Browse files Browse the repository at this point in the history
Closes #1153
  • Loading branch information
baptisteArno committed Jan 29, 2024
1 parent f0cfc20 commit d8e2b74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/forge/blocks/openai/actions/askAssistant.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,9 @@ export const askAssistant = createAction({
for (const content of messageContents) {
switch (content.type) {
case 'text':
message += (message !== '' ? '\n\n' : '') + content.text.value
message +=
(message !== '' ? '\n\n' : '') +
content.text.value.replace(/【.+】/g, '')
break
}
}
Expand Down

0 comments on commit d8e2b74

Please sign in to comment.