From 0bfa55b623b3e56a6d4aa5b8684b0a02578f323c Mon Sep 17 00:00:00 2001 From: Robert Poschenrieder <20094524+robposch@users.noreply.github.com> Date: Mon, 25 May 2026 23:29:11 +0200 Subject: [PATCH] tweak (config): make modalities input/output fields optional so that u can specify one without both being required (#29268) Co-authored-by: Robert Poschenrieder --- packages/opencode/src/config/provider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/opencode/src/config/provider.ts b/packages/opencode/src/config/provider.ts index 5635512ced..a9432f1226 100644 --- a/packages/opencode/src/config/provider.ts +++ b/packages/opencode/src/config/provider.ts @@ -44,8 +44,8 @@ export const Model = Schema.Struct({ ), modalities: Schema.optional( Schema.Struct({ - input: Schema.mutable(Schema.Array(Schema.Literals(["text", "audio", "image", "video", "pdf"]))), - output: Schema.mutable(Schema.Array(Schema.Literals(["text", "audio", "image", "video", "pdf"]))), + input: Schema.optional(Schema.mutable(Schema.Array(Schema.Literals(["text", "audio", "image", "video", "pdf"])))), + output: Schema.optional(Schema.mutable(Schema.Array(Schema.Literals(["text", "audio", "image", "video", "pdf"])))), }), ), experimental: Schema.optional(Schema.Boolean),