Skip to content

Commit 3a3512a

Browse files
committed
Update ai-chat.ts
1 parent 74c1d4f commit 3a3512a

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/alphalib/types/robots/ai-chat.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ const imagePartSchema = z.object({
3333
z.string(),
3434
z.instanceof(Uint8Array),
3535
z.instanceof(ArrayBuffer),
36-
z.instanceof(Buffer),
36+
// Note: Buffer is not included here since it's Node.js-only and this code runs in browsers.
37+
// Node.js Buffer extends Uint8Array, so Uint8Array validation handles Buffer values too.
3738
z.instanceof(URL),
3839
]),
3940
mimeType: z.string().optional(),
@@ -45,7 +46,8 @@ const filePartSchema = z.object({
4546
z.string(),
4647
z.instanceof(Uint8Array),
4748
z.instanceof(ArrayBuffer),
48-
z.instanceof(Buffer),
49+
// Note: Buffer is not included here since it's Node.js-only and this code runs in browsers.
50+
// Node.js Buffer extends Uint8Array, so Uint8Array validation handles Buffer values too.
4951
z.instanceof(URL),
5052
]),
5153
mediaType: z.string(),
@@ -136,7 +138,7 @@ export const meta: RobotMetaInput = {
136138
trackOutputFileSize: true,
137139
isInternal: false,
138140
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
139-
stage: 'ga',
141+
stage: 'alpha',
140142
}
141143

142144
export const vendorModelSchema = z

0 commit comments

Comments
 (0)