Update api spec (#404)
* 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
7e5d830ef9
commit
69b0706d4a
File diff suppressed because it is too large
Load Diff
@ -311,6 +311,8 @@ class OptionTextToCadMultiFileIteration(BaseModel):
|
|||||||
|
|
||||||
outputs: Optional[Dict[str, str]] = None
|
outputs: Optional[Dict[str, str]] = None
|
||||||
|
|
||||||
|
prompt: Optional[str] = None
|
||||||
|
|
||||||
source_ranges: List[SourceRangePrompt]
|
source_ranges: List[SourceRangePrompt]
|
||||||
|
|
||||||
started_at: Optional[datetime.datetime] = None
|
started_at: Optional[datetime.datetime] = None
|
||||||
|
@ -29,6 +29,8 @@ class TextToCadMultiFileIteration(BaseModel):
|
|||||||
|
|
||||||
outputs: Optional[Dict[str, str]] = None
|
outputs: Optional[Dict[str, str]] = None
|
||||||
|
|
||||||
|
prompt: Optional[str] = None
|
||||||
|
|
||||||
source_ranges: List[SourceRangePrompt]
|
source_ranges: List[SourceRangePrompt]
|
||||||
|
|
||||||
started_at: Optional[datetime.datetime] = None
|
started_at: Optional[datetime.datetime] = None
|
||||||
|
@ -6,12 +6,14 @@ from ..models.source_range_prompt import SourceRangePrompt
|
|||||||
|
|
||||||
|
|
||||||
class TextToCadMultiFileIterationBody(BaseModel):
|
class TextToCadMultiFileIterationBody(BaseModel):
|
||||||
"""Body for generating models from text."""
|
"""Body for iterating on models from text prompts."""
|
||||||
|
|
||||||
kcl_version: Optional[str] = None
|
kcl_version: Optional[str] = None
|
||||||
|
|
||||||
project_name: Optional[str] = None
|
project_name: Optional[str] = None
|
||||||
|
|
||||||
source_ranges: List[SourceRangePrompt]
|
prompt: Optional[str] = None
|
||||||
|
|
||||||
|
source_ranges: Optional[List[SourceRangePrompt]] = None
|
||||||
|
|
||||||
model_config = ConfigDict(protected_namespaces=())
|
model_config = ConfigDict(protected_namespaces=())
|
||||||
|
24
spec.json
24
spec.json
@ -16640,6 +16640,11 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"prompt": {
|
||||||
|
"nullable": true,
|
||||||
|
"description": "The prompt for the overall changes. This is optional if you only want changes on specific source ranges. This will apply to all the files.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"source_ranges": {
|
"source_ranges": {
|
||||||
"description": "The source ranges the user suggested to change.",
|
"description": "The source ranges the user suggested to change.",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
@ -30856,7 +30861,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"file": {
|
"file": {
|
||||||
"nullable": true,
|
"nullable": true,
|
||||||
"description": "The name of the file the source range applies to. This only applies to multi-file iterations.",
|
"description": "The name of the file the source range applies to. This is the relative path to the file from the root of the project. This only applies to multi-file iterations.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"prompt": {
|
"prompt": {
|
||||||
@ -31588,6 +31593,11 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"prompt": {
|
||||||
|
"nullable": true,
|
||||||
|
"description": "The prompt for the overall changes. This is optional if you only want changes on specific source ranges. This will apply to all the files.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"source_ranges": {
|
"source_ranges": {
|
||||||
"description": "The source ranges the user suggested to change.",
|
"description": "The source ranges the user suggested to change.",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
@ -31637,7 +31647,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"TextToCadMultiFileIterationBody": {
|
"TextToCadMultiFileIterationBody": {
|
||||||
"description": "Body for generating models from text.",
|
"description": "Body for iterating on models from text prompts.",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"kcl_version": {
|
"kcl_version": {
|
||||||
@ -31650,6 +31660,11 @@
|
|||||||
"description": "The project name. This is used to tie the prompt to a project. Which helps us make our models better over time.",
|
"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"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"prompt": {
|
||||||
|
"nullable": true,
|
||||||
|
"description": "The prompt for the overall changes. This is optional if you only want changes on specific source ranges. This will apply to all the files. If you want to apply a prompt to just a single file, use the source_ranges field and you can leave this empty.",
|
||||||
|
"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",
|
||||||
@ -31657,10 +31672,7 @@
|
|||||||
"$ref": "#/components/schemas/SourceRangePrompt"
|
"$ref": "#/components/schemas/SourceRangePrompt"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"required": [
|
|
||||||
"source_ranges"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"TextToCadResultsPage": {
|
"TextToCadResultsPage": {
|
||||||
"description": "A single page of results",
|
"description": "A single page of results",
|
||||||
|
Reference in New Issue
Block a user