Build AI-powered applications with React, Svelte, Vue, and Solid
OTHER License
Bot releases are visible (Hide)
Published by github-actions[bot] over 1 year ago
createdAt
on user
input message in useChat
(it was already present in assistant
messages)Published by github-actions[bot] over 1 year ago
ai
via the ai/vue
subpath export. Vue composables useChat
and useCompletion
are provided.Published by github-actions[bot] over 1 year ago
/react
sub-package.
import { useChat, useCompletion } from 'ai-connector/react'
and mark React as an optional peer dependency so we can add more framework support in the future.set
to setMessages
and setCompletion
to unify the API naming as we have setInput
too.sendExtraMessageFields
field to useChat
that defaults to false
, to prevent OpenAI errors when id
is not filtered out.Published by github-actions[bot] over 1 year ago
onCompletion
is not specifiedPublished by github-actions[bot] over 1 year ago
EventSource
parser into a reusable helper
TransformStream
for this, so the stream respects back-pressurecustomParser
to avoid Stringify -> Encode -> Decode -> Parse round tripnull
res.body
casePublished by github-actions[bot] over 1 year ago
useChat
UseCompletionHelpers
as a TypeScript type aliasPublished by github-actions[bot] over 1 year ago
'use client'
directivesPublished by github-actions[bot] over 1 year ago