AI SDK Integration docs
AI SDK is a free open-source library for building AI-powered products. You can seamlessly integrate it with oRPC without any extra overhead.
const { messages, sendMessage, status } = useChat({
transport: {
async sendMessages(options) {
return eventIteratorToStream(await client.chat({
chatId: options.chatId,
messages: options.messages,
}, { signal: options.abortSignal }))
},
},
})
🚀 Features
- Stream converter utils + AI SDK examples - by @unnoq in #775 (e7882)
- server, openapi: Add filter option to handlers - by @unnoq in #770 (3f73b)
- zod: Support zod meta
title
in generated JSON schema - by @zhelezkov in #774 (c8607)