Update api spec (#427)
* 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
2bd736096a
commit
6572a92004
@ -56,6 +56,7 @@ from kittycad.api.meta import (
|
||||
)
|
||||
from kittycad.api.ml import (
|
||||
create_kcl_code_completions,
|
||||
create_proprietary_to_kcl,
|
||||
create_text_to_cad,
|
||||
create_text_to_cad_iteration,
|
||||
create_text_to_cad_model_feedback,
|
||||
@ -188,6 +189,7 @@ from kittycad.models import (
|
||||
Invoice,
|
||||
IpAddrInfo,
|
||||
KclCodeCompletionResponse,
|
||||
KclModel,
|
||||
Metadata,
|
||||
MlPrompt,
|
||||
MlPromptResultsPage,
|
||||
@ -1899,6 +1901,49 @@ async def test_get_ml_prompt_async():
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.skip
|
||||
def test_create_proprietary_to_kcl():
|
||||
# Create our client.
|
||||
client = ClientFromEnv()
|
||||
|
||||
result: Optional[Union[KclModel, Error]] = create_proprietary_to_kcl.sync(
|
||||
client=client,
|
||||
)
|
||||
|
||||
if isinstance(result, Error) or result is None:
|
||||
print(result)
|
||||
raise Exception("Error in response")
|
||||
|
||||
body: KclModel = result
|
||||
print(body)
|
||||
|
||||
# OR if you need more info (e.g. status_code)
|
||||
response: Response[Optional[Union[KclModel, Error]]] = (
|
||||
create_proprietary_to_kcl.sync_detailed(
|
||||
client=client,
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
# OR run async
|
||||
@pytest.mark.asyncio
|
||||
@pytest.mark.skip
|
||||
async def test_create_proprietary_to_kcl_async():
|
||||
# Create our client.
|
||||
client = ClientFromEnv()
|
||||
|
||||
result: Optional[Union[KclModel, Error]] = await create_proprietary_to_kcl.asyncio(
|
||||
client=client,
|
||||
)
|
||||
|
||||
# OR run async with more info
|
||||
response: Response[
|
||||
Optional[Union[KclModel, Error]]
|
||||
] = await create_proprietary_to_kcl.asyncio_detailed(
|
||||
client=client,
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.skip
|
||||
def test_create_kcl_code_completions():
|
||||
# Create our client.
|
||||
@ -7493,6 +7538,7 @@ def test_modeling_commands_ws():
|
||||
video_res_height=10,
|
||||
video_res_width=10,
|
||||
webrtc=False,
|
||||
api_call_id=None, # Optional[str]
|
||||
pool=None, # Optional[str]
|
||||
replay=None, # Optional[str]
|
||||
) as websocket:
|
||||
@ -7530,6 +7576,7 @@ async def test_modeling_commands_ws_async():
|
||||
video_res_height=10,
|
||||
video_res_width=10,
|
||||
webrtc=False,
|
||||
api_call_id=None, # Optional[str]
|
||||
pool=None, # Optional[str]
|
||||
replay=None, # Optional[str]
|
||||
)
|
||||
|
Reference in New Issue
Block a user