瀏覽代碼

chore: generate

opencode-agent[bot] 3 月之前
父節點
當前提交
d595e472b3
共有 3 個文件被更改,包括 5 次插入4 次删除
  1. 3 1
      packages/opencode/src/config/provider.ts
  2. 2 2
      packages/sdk/js/src/v2/gen/types.gen.ts
  3. 0 1
      packages/sdk/openapi.json

+ 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": {