Skip to content

Commit f33f176

Browse files
committed
delete unsupported $schema param from vertex and google
1 parent de327f6 commit f33f176

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ export const recursivelyDeleteUnsupportedParameters = (obj: any) => {
232232
if (typeof obj !== 'object' || obj === null || Array.isArray(obj)) return;
233233
delete obj.additional_properties;
234234
delete obj.additionalProperties;
235+
delete obj['$schema'];
235236
for (const key in obj) {
236237
if (obj[key] !== null && typeof obj[key] === 'object') {
237238
recursivelyDeleteUnsupportedParameters(obj[key]);

0 commit comments

Comments
 (0)