Skip to content

Commit

Permalink
Merge pull request #1764 from janhq/chore/lint-api-reference
Browse files Browse the repository at this point in the history
docs: fix tools should be array not object
  • Loading branch information
gabrielle-ong authored Dec 4, 2024
2 parents 0528553 + ade0aa0 commit 4bf5e75
Showing 1 changed file with 26 additions and 13 deletions.
39 changes: 26 additions & 13 deletions docs/static/openapi/cortex.json
Original file line number Diff line number Diff line change
Expand Up @@ -2224,8 +2224,18 @@
"default": [],
"type": "array",
"items": {
"type": "object"
}
"type": "array",
"properties": {
"type": {
"type": "string",
"enum": ["function"]
},
"function": {
"$ref": "#/components/schemas/Function"
}
},
"required": ["type", "function"]
},
},
"metadata": {
"type": "object",
Expand Down Expand Up @@ -2286,7 +2296,7 @@
"nullable": true
},
"tools": {
"type": "object"
"type": "array"
},
"metadata": {
"type": "object",
Expand Down Expand Up @@ -2869,17 +2879,20 @@
}
},
"tools": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": ["function"]
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": ["function"]
},
"function": {
"$ref": "#/components/schemas/Function"
}
},
"function": {
"$ref": "#/components/schemas/Function"
}
},
"required": ["type", "function"]
"required": ["type", "function"]
}
},
"tool_choice": {
"anyOf": [
Expand Down

0 comments on commit 4bf5e75

Please sign in to comment.