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:
zoo-github-actions-auth[bot]
2025-03-29 17:13:59 -07:00
committed by GitHub
parent 7e5d830ef9
commit 69b0706d4a
5 changed files with 749 additions and 731 deletions

File diff suppressed because it is too large Load Diff

View File

@ -311,6 +311,8 @@ class OptionTextToCadMultiFileIteration(BaseModel):
outputs: Optional[Dict[str, str]] = None
prompt: Optional[str] = None
source_ranges: List[SourceRangePrompt]
started_at: Optional[datetime.datetime] = None

View File

@ -29,6 +29,8 @@ class TextToCadMultiFileIteration(BaseModel):
outputs: Optional[Dict[str, str]] = None
prompt: Optional[str] = None
source_ranges: List[SourceRangePrompt]
started_at: Optional[datetime.datetime] = None

View File

@ -6,12 +6,14 @@ from ..models.source_range_prompt import SourceRangePrompt
class TextToCadMultiFileIterationBody(BaseModel):
"""Body for generating models from text."""
"""Body for iterating on models from text prompts."""
kcl_version: 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=())

View File

@ -16640,6 +16640,11 @@
"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": {
"description": "The source ranges the user suggested to change.",
"type": "array",
@ -30856,7 +30861,7 @@
"properties": {
"file": {
"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"
},
"prompt": {
@ -31588,6 +31593,11 @@
"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": {
"description": "The source ranges the user suggested to change.",
"type": "array",
@ -31637,7 +31647,7 @@
]
},
"TextToCadMultiFileIterationBody": {
"description": "Body for generating models from text.",
"description": "Body for iterating on models from text prompts.",
"type": "object",
"properties": {
"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.",
"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": {
"description": "The source ranges the user suggested to change. If empty, the prompt will be used and is required.",
"type": "array",
@ -31657,10 +31672,7 @@
"$ref": "#/components/schemas/SourceRangePrompt"
}
}
},
"required": [
"source_ranges"
]
}
},
"TextToCadResultsPage": {
"description": "A single page of results",