Skip to content

Commit b987f39

Browse files
localai-botmudler
andauthored
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>
1 parent 16d028a commit b987f39

3 files changed

Lines changed: 71 additions & 0 deletions

File tree

swagger/docs.go

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3966,12 +3966,18 @@ const docTemplate = `{
39663966
"name": {
39673967
"type": "string"
39683968
},
3969+
"signature": {
3970+
"type": "string"
3971+
},
39693972
"source": {
39703973
"$ref": "#/definitions/schema.AnthropicImageSource"
39713974
},
39723975
"text": {
39733976
"type": "string"
39743977
},
3978+
"thinking": {
3979+
"type": "string"
3980+
},
39753981
"tool_use_id": {
39763982
"type": "string"
39773983
},
@@ -4039,6 +4045,14 @@ const docTemplate = `{
40394045
"temperature": {
40404046
"type": "number"
40414047
},
4048+
"thinking": {
4049+
"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.",
4050+
"allOf": [
4051+
{
4052+
"$ref": "#/definitions/schema.AnthropicThinkingParam"
4053+
}
4054+
]
4055+
},
40424056
"tool_choice": {},
40434057
"tools": {
40444058
"type": "array",
@@ -4086,6 +4100,18 @@ const docTemplate = `{
40864100
}
40874101
}
40884102
},
4103+
"schema.AnthropicThinkingParam": {
4104+
"type": "object",
4105+
"properties": {
4106+
"budget_tokens": {
4107+
"type": "integer"
4108+
},
4109+
"type": {
4110+
"description": "\"enabled\" | \"disabled\"",
4111+
"type": "string"
4112+
}
4113+
}
4114+
},
40894115
"schema.AnthropicTool": {
40904116
"type": "object",
40914117
"properties": {

swagger/swagger.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3963,12 +3963,18 @@
39633963
"name": {
39643964
"type": "string"
39653965
},
3966+
"signature": {
3967+
"type": "string"
3968+
},
39663969
"source": {
39673970
"$ref": "#/definitions/schema.AnthropicImageSource"
39683971
},
39693972
"text": {
39703973
"type": "string"
39713974
},
3975+
"thinking": {
3976+
"type": "string"
3977+
},
39723978
"tool_use_id": {
39733979
"type": "string"
39743980
},
@@ -4036,6 +4042,14 @@
40364042
"temperature": {
40374043
"type": "number"
40384044
},
4045+
"thinking": {
4046+
"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.",
4047+
"allOf": [
4048+
{
4049+
"$ref": "#/definitions/schema.AnthropicThinkingParam"
4050+
}
4051+
]
4052+
},
40394053
"tool_choice": {},
40404054
"tools": {
40414055
"type": "array",
@@ -4083,6 +4097,18 @@
40834097
}
40844098
}
40854099
},
4100+
"schema.AnthropicThinkingParam": {
4101+
"type": "object",
4102+
"properties": {
4103+
"budget_tokens": {
4104+
"type": "integer"
4105+
},
4106+
"type": {
4107+
"description": "\"enabled\" | \"disabled\"",
4108+
"type": "string"
4109+
}
4110+
}
4111+
},
40864112
"schema.AnthropicTool": {
40874113
"type": "object",
40884114
"properties": {

swagger/swagger.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,10 +516,14 @@ definitions:
516516
type: boolean
517517
name:
518518
type: string
519+
signature:
520+
type: string
519521
source:
520522
$ref: '#/definitions/schema.AnthropicImageSource'
521523
text:
522524
type: string
525+
thinking:
526+
type: string
523527
tool_use_id:
524528
type: string
525529
type:
@@ -564,6 +568,13 @@ definitions:
564568
type: string
565569
temperature:
566570
type: number
571+
thinking:
572+
allOf:
573+
- $ref: '#/definitions/schema.AnthropicThinkingParam'
574+
description: |-
575+
Thinking gates extended-thinking output. We only surface thinking
576+
content blocks when the client explicitly opts in, matching Anthropic's
577+
API where thinking is off unless requested.
567578
tool_choice: {}
568579
tools:
569580
items:
@@ -595,6 +606,14 @@ definitions:
595606
usage:
596607
$ref: '#/definitions/schema.AnthropicUsage'
597608
type: object
609+
schema.AnthropicThinkingParam:
610+
properties:
611+
budget_tokens:
612+
type: integer
613+
type:
614+
description: '"enabled" | "disabled"'
615+
type: string
616+
type: object
598617
schema.AnthropicTool:
599618
properties:
600619
description:

0 commit comments

Comments
 (0)