opencode-agent[bot] 2 месяцев назад
Родитель
Сommit
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 = {
 export type AgentConfig = {
   model?: string
   model?: string
+  /**
+   * Default model variant for this agent (applies only when using the agent's configured model).
+   */
+  variant?: string
   temperature?: number
   temperature?: number
   top_p?: number
   top_p?: number
   prompt?: string
   prompt?: string
@@ -2136,6 +2140,7 @@ export type Agent = {
     modelID: string
     modelID: string
     providerID: string
     providerID: string
   }
   }
+  variant?: string
   prompt?: string
   prompt?: string
   options: {
   options: {
     [key: string]: unknown
     [key: string]: unknown

+ 7 - 0
packages/sdk/openapi.json

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