update: ai package (#1139)

This commit is contained in:
josh 2025-08-27 11:05:46 +01:00 committed by GitHub
parent 87884517c9
commit 66e8227655
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 107 additions and 113 deletions

View file

@ -19,7 +19,7 @@ export const textDocumentHandler = createDocumentHandler<'text'>({
for await (const delta of fullStream) {
const { type } = delta;
if (type === 'text') {
if (type === 'text-delta') {
const { text } = delta;
draftContent += text;
@ -55,7 +55,7 @@ export const textDocumentHandler = createDocumentHandler<'text'>({
for await (const delta of fullStream) {
const { type } = delta;
if (type === 'text') {
if (type === 'text-delta') {
const { text } = delta;
draftContent += text;