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

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

@@ -1371,6 +1371,10 @@ export type PermissionConfig =
 
 export type AgentConfig = {
   model?: string
+  /**
+   * Default model variant for this agent (applies only when using the agent's configured model).
+   */
+  variant?: string
   temperature?: number
   top_p?: number
   prompt?: string
@@ -2136,6 +2140,7 @@ export type Agent = {
     modelID: string
     providerID: string
   }
+  variant?: string
   prompt?: string
   options: {
     [key: string]: unknown

+ 7 - 0
packages/sdk/openapi.json

@@ -9017,6 +9017,10 @@
           "model": {
             "type": "string"
           },
+          "variant": {
+            "description": "Default model variant for this agent (applies only when using the agent's configured model).",
+            "type": "string"
+          },
           "temperature": {
             "type": "number"
           },
@@ -10842,6 +10846,9 @@
             },
             "required": ["modelID", "providerID"]
           },
+          "variant": {
+            "type": "string"
+          },
           "prompt": {
             "type": "string"
           },