Skip to content

Commit 0b0ccc1

Browse files
committed
fix: zod validation for vertex
1 parent 1650766 commit 0b0ccc1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/providers/google-vertex-ai/transformGenerationConfig.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ export function transformGenerationConfig(params: Params) {
3535
schema = derefer(schema);
3636
delete schema['$defs'];
3737
}
38+
if (Object.hasOwn(schema, '$schema')) {
39+
delete schema['$schema'];
40+
}
3841
generationConfig['responseSchema'] = schema;
3942
}
4043

0 commit comments

Comments
 (0)