Skip to content

Commit

Permalink
fix(ai-sdk): update error message to mention Edge runtime for image s…
Browse files Browse the repository at this point in the history
…upport (#602)
  • Loading branch information
Yonom authored Jul 28, 2024
1 parent 633d6fe commit fc081fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class VercelUseChatThreadRuntime implements ReactThreadRuntime {

if (message.content.length !== 1 || message.content[0]?.type !== "text")
throw new Error(
"Only text content is supported by VercelUseChatRuntime.",
"Only text content is supported by VercelUseChatRuntime. Use the Edge runtime for image support.",
);

const newMessages = sliceMessagesUntil(
Expand Down

0 comments on commit fc081fb

Please sign in to comment.