🐛 Fix streaming text selection (#1444)
This commit is contained in:
@@ -110,6 +110,7 @@ export const clientSideActionSchema = z.discriminatedUnion('type', [
|
||||
messages: z.array(
|
||||
nativeMessageSchema.pick({ content: true, role: true })
|
||||
),
|
||||
runtime: z.enum(['edge', 'nodejs']),
|
||||
}),
|
||||
})
|
||||
.merge(clientSideActionBaseSchema)
|
||||
@@ -151,6 +152,7 @@ export const clientSideActionSchema = z.discriminatedUnion('type', [
|
||||
.object({
|
||||
type: z.literal('stream'),
|
||||
stream: z.literal(true),
|
||||
runtime: z.enum(['edge', 'nodejs']),
|
||||
})
|
||||
.merge(clientSideActionBaseSchema)
|
||||
.openapi({
|
||||
|
||||
Reference in New Issue
Block a user