Integrate Portkey with Vercel AI SDK for production-ready and reliable AI apps
generateText
& streamText
.
Here’s how to use them with Portkey:
chatModel
and completionModel
to easily handle chatbots or text completions. In the above examples, we used portkey.chatModel
for generateText and portkey.completionModel
for streamText.