Skip to content

Commit

Permalink
display string mesasge trimed
Browse files Browse the repository at this point in the history
  • Loading branch information
heimoshuiyu committed Feb 7, 2025
1 parent 9634e02 commit d10734f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chatgpt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const getMessageText = (message: Message): string => {
})
.join("\n");
}
return message.content;
return message.content.trim();
}
return message.content
.filter((c) => c.type === "text")
Expand Down

0 comments on commit d10734f

Please sign in to comment.