Welcome to Portkey Forum

Updated 4 months ago

The Importance of Matching Schemas in AI SDK Integrations

Thanks for the quick reply ๐Ÿ™‚

Yeh fair enough. Just note that @ai-sdk/openai does some zod schema checking and Portkey's response does not match the expected format. That's why I use createAnthropic rather than createOpenAI
V
1 comment
@Yorick do you please mind sharing what's the Zod error that you receive? We'll try to fix this either upstream or figure out a better integration specifically with Vercel to fix it!

A lot of Portkey's users are using Vercel so this is a high priority for us.

@chandypaaji who can take a closer look at this
Add a reply
Sign up and join the conversation on Discord