Skip to content

Commit

Permalink
fix: type error (#746)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Sep 6, 2024
1 parent fb8e58f commit fb12bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-ai-sdk/src/ui/utils/convertMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const convertMessage = (messages: Message[]): ThreadMessageLike => {

case "data":
case "assistant": {
const res: ThreadMessageLike = {
const res: ThreadMessageLike & { content: any[] } = {
...common,
role: "assistant",
content: messages.flatMap((message) => {
Expand Down

0 comments on commit fb12bcc

Please sign in to comment.