Build AI-powered applications with React, Svelte, Vue, and Solid
OTHER License
Bot releases are visible (Hide)
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
writer
from LangChainStreamPublished by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
e5bf68d: react/use-chat: fix experimental functions returning proper function messages
Closes #478
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
867a3f9: Fix client-side function calling (#467, #469)
add Completion type from the openai
SDK to openai-stream (#472)
Published by github-actions[bot] about 1 year ago
84e0cc8: Add experimental_StreamData and new opt-in wire protocol to enable streaming additional data. See https://github.com/vercel/ai/pull/425.
Changes onCompletion
back to run every completion, including recursive function calls. Adds an onFinish
callback that runs once everything has streamed. For users not using experimental function handling on the server, onCompletion
functions the same but it's recommended you migrate to onFinish
.
If you're using experimental function handlers on the server and caching via onCompletion
,
you may want to adjust your caching code to account for recursive calls so the same key isn't used.
let depth = 0
const stream = OpenAIStream(response, {
async onCompletion(completion) {
depth++
await kv.set(key + '_' + depth, completion)
await kv.expire(key + '_' + depth, 60 * 60)
}
})
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
isLoading
in vue integration from triggering extraneous network requestsPublished by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
{}
from outputPublished by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
3d29799: React/Svelte/Vue: keep isLoading in sync between hooks with the same ID.
React: don't throw error when submitting
Published by github-actions[bot] over 1 year ago