update: ai package (#1139)
This commit is contained in:
parent
87884517c9
commit
66e8227655
3 changed files with 107 additions and 113 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue