Ver Fonte

chore: generate

opencode-agent[bot] há 2 meses atrás
pai
commit
d595e472b3

+ 3 - 1
packages/opencode/src/config/provider.ts

@@ -45,7 +45,9 @@ export const Model = Schema.Struct({
   modalities: Schema.optional(
     Schema.Struct({
       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"])))),
+      output: Schema.optional(
+        Schema.mutable(Schema.Array(Schema.Literals(["text", "audio", "image", "video", "pdf"]))),
+      ),
     }),
   ),
   experimental: Schema.optional(Schema.Boolean),

+ 2 - 2
packages/sdk/js/src/v2/gen/types.gen.ts

@@ -1088,8 +1088,8 @@ export type ProviderConfig = {
         output: number
       }
       modalities?: {
-        input: Array<"text" | "audio" | "image" | "video" | "pdf">
-        output: Array<"text" | "audio" | "image" | "video" | "pdf">
+        input?: Array<"text" | "audio" | "image" | "video" | "pdf">
+        output?: Array<"text" | "audio" | "image" | "video" | "pdf">
       }
       experimental?: boolean
       status?: "alpha" | "beta" | "deprecated" | "active"

+ 0 - 1
packages/sdk/openapi.json

@@ -13717,7 +13717,6 @@
                       }
                     }
                   },
-                  "required": ["input", "output"],
                   "additionalProperties": false
                 },
                 "experimental": {