npm @orpc/openapi 1.7.2
v1.7.2

latest releases: 0.0.0-next.10e24a6, 0.0.0-next.62f2eae, 1.13.4...
6 months ago

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

    View changes on GitHub

Don't miss a new openapi release

NewReleases is sending notifications on new releases.