diff --git a/swagger/docs.go b/swagger/docs.go index f20644160..edcecb4be 100644 --- a/swagger/docs.go +++ b/swagger/docs.go @@ -3966,12 +3966,18 @@ const docTemplate = `{ "name": { "type": "string" }, + "signature": { + "type": "string" + }, "source": { "$ref": "#/definitions/schema.AnthropicImageSource" }, "text": { "type": "string" }, + "thinking": { + "type": "string" + }, "tool_use_id": { "type": "string" }, @@ -4039,6 +4045,14 @@ const docTemplate = `{ "temperature": { "type": "number" }, + "thinking": { + "description": "Thinking gates extended-thinking output. We only surface thinking\ncontent blocks when the client explicitly opts in, matching Anthropic's\nAPI where thinking is off unless requested.", + "allOf": [ + { + "$ref": "#/definitions/schema.AnthropicThinkingParam" + } + ] + }, "tool_choice": {}, "tools": { "type": "array", @@ -4086,6 +4100,18 @@ const docTemplate = `{ } } }, + "schema.AnthropicThinkingParam": { + "type": "object", + "properties": { + "budget_tokens": { + "type": "integer" + }, + "type": { + "description": "\"enabled\" | \"disabled\"", + "type": "string" + } + } + }, "schema.AnthropicTool": { "type": "object", "properties": { diff --git a/swagger/swagger.json b/swagger/swagger.json index 5af1c479b..ad81cb2d2 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -3963,12 +3963,18 @@ "name": { "type": "string" }, + "signature": { + "type": "string" + }, "source": { "$ref": "#/definitions/schema.AnthropicImageSource" }, "text": { "type": "string" }, + "thinking": { + "type": "string" + }, "tool_use_id": { "type": "string" }, @@ -4036,6 +4042,14 @@ "temperature": { "type": "number" }, + "thinking": { + "description": "Thinking gates extended-thinking output. We only surface thinking\ncontent blocks when the client explicitly opts in, matching Anthropic's\nAPI where thinking is off unless requested.", + "allOf": [ + { + "$ref": "#/definitions/schema.AnthropicThinkingParam" + } + ] + }, "tool_choice": {}, "tools": { "type": "array", @@ -4083,6 +4097,18 @@ } } }, + "schema.AnthropicThinkingParam": { + "type": "object", + "properties": { + "budget_tokens": { + "type": "integer" + }, + "type": { + "description": "\"enabled\" | \"disabled\"", + "type": "string" + } + } + }, "schema.AnthropicTool": { "type": "object", "properties": { diff --git a/swagger/swagger.yaml b/swagger/swagger.yaml index a90ef2088..28ebbd94d 100644 --- a/swagger/swagger.yaml +++ b/swagger/swagger.yaml @@ -516,10 +516,14 @@ definitions: type: boolean name: type: string + signature: + type: string source: $ref: '#/definitions/schema.AnthropicImageSource' text: type: string + thinking: + type: string tool_use_id: type: string type: @@ -564,6 +568,13 @@ definitions: type: string temperature: type: number + thinking: + allOf: + - $ref: '#/definitions/schema.AnthropicThinkingParam' + description: |- + Thinking gates extended-thinking output. We only surface thinking + content blocks when the client explicitly opts in, matching Anthropic's + API where thinking is off unless requested. tool_choice: {} tools: items: @@ -595,6 +606,14 @@ definitions: usage: $ref: '#/definitions/schema.AnthropicUsage' type: object + schema.AnthropicThinkingParam: + properties: + budget_tokens: + type: integer + type: + description: '"enabled" | "disabled"' + type: string + type: object schema.AnthropicTool: properties: description: