Update api spec (#378)
* YOYO NEW API SPEC! * I have generated the latest API! --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
f61c4b304c
commit
17c78d3b63
File diff suppressed because it is too large
Load Diff
@ -23,12 +23,16 @@ class MlPrompt(BaseModel):
|
|||||||
|
|
||||||
id: Uuid
|
id: Uuid
|
||||||
|
|
||||||
|
kcl_version: Optional[str] = None
|
||||||
|
|
||||||
metadata: Optional[MlPromptMetadata] = None
|
metadata: Optional[MlPromptMetadata] = None
|
||||||
|
|
||||||
model_version: str
|
model_version: str
|
||||||
|
|
||||||
output_file: Optional[str] = None
|
output_file: Optional[str] = None
|
||||||
|
|
||||||
|
project_name: Optional[str] = None
|
||||||
|
|
||||||
prompt: str
|
prompt: str
|
||||||
|
|
||||||
started_at: Optional[datetime.datetime] = None
|
started_at: Optional[datetime.datetime] = None
|
||||||
|
@ -1,9 +1,15 @@
|
|||||||
|
from typing import Optional
|
||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
|
|
||||||
class TextToCadCreateBody(BaseModel):
|
class TextToCadCreateBody(BaseModel):
|
||||||
"""Body for generating models from text."""
|
"""Body for generating models from text."""
|
||||||
|
|
||||||
|
kcl_version: Optional[str] = None
|
||||||
|
|
||||||
|
project_name: Optional[str] = None
|
||||||
|
|
||||||
prompt: str
|
prompt: str
|
||||||
|
|
||||||
model_config = ConfigDict(protected_namespaces=())
|
model_config = ConfigDict(protected_namespaces=())
|
||||||
|
@ -8,8 +8,12 @@ from ..models.source_range_prompt import SourceRangePrompt
|
|||||||
class TextToCadIterationBody(BaseModel):
|
class TextToCadIterationBody(BaseModel):
|
||||||
"""Body for generating models from text."""
|
"""Body for generating models from text."""
|
||||||
|
|
||||||
|
kcl_version: Optional[str] = None
|
||||||
|
|
||||||
original_source_code: str
|
original_source_code: str
|
||||||
|
|
||||||
|
project_name: Optional[str] = None
|
||||||
|
|
||||||
prompt: Optional[str] = None
|
prompt: Optional[str] = None
|
||||||
|
|
||||||
source_ranges: List[SourceRangePrompt]
|
source_ranges: List[SourceRangePrompt]
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from typing import List
|
from typing import List, Optional
|
||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
@ -8,6 +8,10 @@ from ..models.source_range_prompt import SourceRangePrompt
|
|||||||
class TextToCadMultiFileIterationBody(BaseModel):
|
class TextToCadMultiFileIterationBody(BaseModel):
|
||||||
"""Body for generating models from text."""
|
"""Body for generating models from text."""
|
||||||
|
|
||||||
|
kcl_version: Optional[str] = None
|
||||||
|
|
||||||
|
project_name: Optional[str] = None
|
||||||
|
|
||||||
source_ranges: List[SourceRangePrompt]
|
source_ranges: List[SourceRangePrompt]
|
||||||
|
|
||||||
model_config = ConfigDict(protected_namespaces=())
|
model_config = ConfigDict(protected_namespaces=())
|
||||||
|
40
spec.json
40
spec.json
@ -21540,6 +21540,11 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"kcl_version": {
|
||||||
|
"nullable": true,
|
||||||
|
"description": "The KCL version being used.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"nullable": true,
|
"nullable": true,
|
||||||
"description": "The metadata for the prompt.",
|
"description": "The metadata for the prompt.",
|
||||||
@ -21558,6 +21563,11 @@
|
|||||||
"description": "The output file. In the case of TextToCad this is a link to a file in a GCP bucket.",
|
"description": "The output file. In the case of TextToCad this is a link to a file in a GCP bucket.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"project_name": {
|
||||||
|
"nullable": true,
|
||||||
|
"description": "The name of the project, if any. This allows us to group prompts together that come from the same project and user.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"prompt": {
|
"prompt": {
|
||||||
"description": "The prompt.",
|
"description": "The prompt.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@ -30806,6 +30816,16 @@
|
|||||||
"description": "Body for generating models from text.",
|
"description": "Body for generating models from text.",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"kcl_version": {
|
||||||
|
"nullable": true,
|
||||||
|
"description": "The version of kcl to use. If empty, the latest version will be used.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"project_name": {
|
||||||
|
"nullable": true,
|
||||||
|
"description": "The project name. This is used to tie the prompt to a project. Which helps us make our models better over time.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"prompt": {
|
"prompt": {
|
||||||
"description": "The prompt for the model.",
|
"description": "The prompt for the model.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@ -30933,10 +30953,20 @@
|
|||||||
"description": "Body for generating models from text.",
|
"description": "Body for generating models from text.",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"kcl_version": {
|
||||||
|
"nullable": true,
|
||||||
|
"description": "The version of kcl to use. If empty, the latest version will be used.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"original_source_code": {
|
"original_source_code": {
|
||||||
"description": "The source code for the model (in kcl) that is to be edited.",
|
"description": "The source code for the model (in kcl) that is to be edited.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"project_name": {
|
||||||
|
"nullable": true,
|
||||||
|
"description": "The project name. This is used to tie the prompt to a project. Which helps us make our models better over time.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"prompt": {
|
"prompt": {
|
||||||
"nullable": true,
|
"nullable": true,
|
||||||
"description": "The prompt for the model, if not using source ranges.",
|
"description": "The prompt for the model, if not using source ranges.",
|
||||||
@ -31091,6 +31121,16 @@
|
|||||||
"description": "Body for generating models from text.",
|
"description": "Body for generating models from text.",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"kcl_version": {
|
||||||
|
"nullable": true,
|
||||||
|
"description": "The version of kcl to use. If empty, the latest version will be used.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"project_name": {
|
||||||
|
"nullable": true,
|
||||||
|
"description": "The project name. This is used to tie the prompt to a project. Which helps us make our models better over time.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"source_ranges": {
|
"source_ranges": {
|
||||||
"description": "The source ranges the user suggested to change. If empty, the prompt will be used and is required.",
|
"description": "The source ranges the user suggested to change. If empty, the prompt will be used and is required.",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
Reference in New Issue
Block a user