Skip to content

Commit

Permalink
I have generated the latest API!
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 5, 2024
1 parent 295fbb5 commit a54c1ed
Show file tree
Hide file tree
Showing 22 changed files with 299 additions and 622 deletions.
412 changes: 198 additions & 214 deletions kittycad.py.patch.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion kittycad/api/ai/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" Contains methods for accessing the ai API paths: AI uses machine learning to generate 3D meshes. """ # noqa: E501
""" Contains methods for accessing the ai API paths: AI uses machine learning to generate CAD models. """ # noqa: E501
15 changes: 15 additions & 0 deletions kittycad/api/ai/list_text_to_cad_models_for_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def _get_kwargs(
client: Client,
limit: Optional[int] = None,
page_token: Optional[str] = None,
no_models: Optional[bool] = None,
) -> Dict[str, Any]:
url = "{}/user/text-to-cad".format(
client.base_url,
Expand All @@ -38,6 +39,12 @@ def _get_kwargs(
else:
url = url + "?sort_by=" + str(sort_by)

if no_models is not None:
if "?" in url:
url = url + "&no_models=" + str(no_models)
else:
url = url + "?no_models=" + str(no_models)

headers: Dict[str, Any] = client.get_headers()
cookies: Dict[str, Any] = client.get_cookies()

Expand Down Expand Up @@ -81,11 +88,13 @@ def sync_detailed(
client: Client,
limit: Optional[int] = None,
page_token: Optional[str] = None,
no_models: Optional[bool] = None,
) -> Response[Optional[Union[TextToCadResultsPage, Error]]]:
kwargs = _get_kwargs(
limit=limit,
page_token=page_token,
sort_by=sort_by,
no_models=no_models,
client=client,
)

Expand All @@ -103,6 +112,7 @@ def sync(
client: Client,
limit: Optional[int] = None,
page_token: Optional[str] = None,
no_models: Optional[bool] = None,
) -> Optional[Union[TextToCadResultsPage, Error]]:
"""This will always return the STEP file contents as well as the format the user originally requested.
This endpoint requires authentication by any Zoo user. It returns the text-to-CAD models for the authenticated user.
Expand All @@ -113,6 +123,7 @@ def sync(
limit=limit,
page_token=page_token,
sort_by=sort_by,
no_models=no_models,
client=client,
).parsed

Expand All @@ -123,11 +134,13 @@ async def asyncio_detailed(
client: Client,
limit: Optional[int] = None,
page_token: Optional[str] = None,
no_models: Optional[bool] = None,
) -> Response[Optional[Union[TextToCadResultsPage, Error]]]:
kwargs = _get_kwargs(
limit=limit,
page_token=page_token,
sort_by=sort_by,
no_models=no_models,
client=client,
)

Expand All @@ -143,6 +156,7 @@ async def asyncio(
client: Client,
limit: Optional[int] = None,
page_token: Optional[str] = None,
no_models: Optional[bool] = None,
) -> Optional[Union[TextToCadResultsPage, Error]]:
"""This will always return the STEP file contents as well as the format the user originally requested.
This endpoint requires authentication by any Zoo user. It returns the text-to-CAD models for the authenticated user.
Expand All @@ -154,6 +168,7 @@ async def asyncio(
limit=limit,
page_token=page_token,
sort_by=sort_by,
no_models=no_models,
client=client,
)
).parsed
103 changes: 0 additions & 103 deletions kittycad/api/meta/get_ai_plugin_manifest.py

This file was deleted.

104 changes: 0 additions & 104 deletions kittycad/api/meta/get_openai_schema.py

This file was deleted.

Loading

0 comments on commit a54c1ed

Please sign in to comment.