feat(swagger): update swagger (#10745)

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
This commit is contained in:
LocalAI [bot]
2026-07-09 09:35:22 +02:00
committed by GitHub
parent 16d028a127
commit b987f39de8
3 changed files with 71 additions and 0 deletions

View File

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

View File

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

View File

@@ -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: