Skip to content

Commit 1cb8527

Browse files
committed
fix provider schema type narrowing
1 parent dec3e2c commit 1cb8527

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

packages/opencode/src/provider/transform.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,10 +1312,7 @@ export function schema(model: Provider.Model, schema: JSONSchema7): JSONSchema7
13121312
}
13131313

13141314
const sanitized = sanitizeMoonshot(schema)
1315-
if (
1316-
typeof sanitized === "boolean" ||
1317-
(typeof sanitized === "object" && sanitized !== null && !Array.isArray(sanitized))
1318-
) {
1315+
if (typeof sanitized === "object" && sanitized !== null && !Array.isArray(sanitized)) {
13191316
schema = sanitized
13201317
}
13211318
}

0 commit comments

Comments
 (0)