opencode-agent[bot] пре 1 месец
родитељ
комит
cf7503687a
2 измењених фајлова са 66 додато и 0 уклоњено
  1. 14 0
      packages/sdk/js/src/v2/gen/types.gen.ts
  2. 52 0
      packages/sdk/openapi.json

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

@@ -2100,6 +2100,20 @@ export type Model = {
     [key: string]: string
   }
   release_date: string
+  reasoning_options?: Array<
+    | {
+        type: "effort"
+        values: Array<string>
+      }
+    | {
+        type: "toggle"
+      }
+    | {
+        type: "budget_tokens"
+        min?: number
+        max?: number
+      }
+  >
   variants?: {
     [key: string]: {
       [key: string]: unknown

+ 52 - 0
packages/sdk/openapi.json

@@ -21777,6 +21777,58 @@
           "release_date": {
             "type": "string"
           },
+          "reasoning_options": {
+            "type": "array",
+            "items": {
+              "anyOf": [
+                {
+                  "type": "object",
+                  "properties": {
+                    "type": {
+                      "type": "string",
+                      "enum": ["effort"]
+                    },
+                    "values": {
+                      "type": "array",
+                      "items": {
+                        "type": "string"
+                      }
+                    }
+                  },
+                  "required": ["type", "values"],
+                  "additionalProperties": false
+                },
+                {
+                  "type": "object",
+                  "properties": {
+                    "type": {
+                      "type": "string",
+                      "enum": ["toggle"]
+                    }
+                  },
+                  "required": ["type"],
+                  "additionalProperties": false
+                },
+                {
+                  "type": "object",
+                  "properties": {
+                    "type": {
+                      "type": "string",
+                      "enum": ["budget_tokens"]
+                    },
+                    "min": {
+                      "type": "number"
+                    },
+                    "max": {
+                      "type": "number"
+                    }
+                  },
+                  "required": ["type"],
+                  "additionalProperties": false
+                }
+              ]
+            }
+          },
           "variants": {
             "type": "object",
             "additionalProperties": {