Просмотр исходного кода

tweak (config): make modalities input/output fields optional so that u can specify one without both being required (#29268)

Co-authored-by: Robert Poschenrieder <Robert_Poschenrieder@epdeberw000f.fritz.box>
Robert Poschenrieder 3 месяцев назад
Родитель
Сommit
0bfa55b623
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/opencode/src/config/provider.ts

+ 2 - 2
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),