Skip to content

Commit

Permalink
Update api spec (#247)
Browse files Browse the repository at this point in the history
YOYO NEW API SPEC!

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent af6cf97 commit 9cbda88
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -12693,6 +12702,13 @@
"enum": [
"text_to_cad"
]
},
{
"description": "Text to KCL.",
"type": "string",
"enum": [
"text_to_kcl"
]
}
]
},
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -14111,6 +14140,7 @@
"required": [
"created_at",
"id",
"model",
"model_version",
"output_format",
"prompt",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -25381,6 +25424,7 @@
"required": [
"created_at",
"id",
"model",
"model_version",
"output_format",
"prompt",
Expand All @@ -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",
Expand Down

0 comments on commit 9cbda88

Please sign in to comment.