Update api spec (#247)
YOYO NEW API SPEC! Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
af6cf97292
commit
9cbda88fcc
63
spec.json
63
spec.json
@ -506,6 +506,15 @@
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/FileExportFormat"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "kcl",
|
||||
"description": "If we should output the kcl for the model.",
|
||||
"schema": {
|
||||
"nullable": true,
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
@ -12693,6 +12702,13 @@
|
||||
"enum": [
|
||||
"text_to_cad"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Text to KCL.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"text_to_kcl"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -14012,6 +14028,11 @@
|
||||
"description": "Text to CAD.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"nullable": true,
|
||||
"description": "The code for the model. This is optional but will be required in the future once we are at v1.",
|
||||
"type": "string"
|
||||
},
|
||||
"completed_at": {
|
||||
"nullable": true,
|
||||
"title": "DateTime",
|
||||
@ -14047,6 +14068,14 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"model": {
|
||||
"description": "The model being used.",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/TextToCadModel"
|
||||
}
|
||||
]
|
||||
},
|
||||
"model_version": {
|
||||
"description": "The version of the model.",
|
||||
"type": "string"
|
||||
@ -14111,6 +14140,7 @@
|
||||
"required": [
|
||||
"created_at",
|
||||
"id",
|
||||
"model",
|
||||
"model_version",
|
||||
"output_format",
|
||||
"prompt",
|
||||
@ -25288,6 +25318,11 @@
|
||||
"description": "A response from a text to CAD prompt.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"nullable": true,
|
||||
"description": "The code for the model. This is optional but will be required in the future once we are at v1.",
|
||||
"type": "string"
|
||||
},
|
||||
"completed_at": {
|
||||
"nullable": true,
|
||||
"title": "DateTime",
|
||||
@ -25323,6 +25358,14 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"model": {
|
||||
"description": "The model being used.",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/TextToCadModel"
|
||||
}
|
||||
]
|
||||
},
|
||||
"model_version": {
|
||||
"description": "The version of the model.",
|
||||
"type": "string"
|
||||
@ -25381,6 +25424,7 @@
|
||||
"required": [
|
||||
"created_at",
|
||||
"id",
|
||||
"model",
|
||||
"model_version",
|
||||
"output_format",
|
||||
"prompt",
|
||||
@ -25402,6 +25446,25 @@
|
||||
"prompt"
|
||||
]
|
||||
},
|
||||
"TextToCadModel": {
|
||||
"description": "A type of Text-to-CAD model.",
|
||||
"oneOf": [
|
||||
{
|
||||
"description": "CAD.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"cad"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "KCL.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"kcl"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"TextToCadResultsPage": {
|
||||
"description": "A single page of results",
|
||||
"type": "object",
|
||||
|
Reference in New Issue
Block a user