Skip to content

Commit 287b51e

Browse files
stainless-botRobertCraigie
authored andcommitted
fix: asssitant_deleted -> assistant_deleted (#711)
1 parent dceea2d commit 287b51e

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ Methods:
197197
Types:
198198

199199
```python
200-
from openai.types.beta import Assistant, AsssitantDeleted
200+
from openai.types.beta import Assistant, AssistantDeleted
201201
```
202202

203203
Methods:
@@ -206,7 +206,7 @@ Methods:
206206
- <code title="get /assistants/{assistant_id}">client.beta.assistants.<a href="./src/openai/resources/beta/assistants/assistants.py">retrieve</a>(assistant_id) -> <a href="./src/openai/types/beta/assistant.py">Assistant</a></code>
207207
- <code title="post /assistants/{assistant_id}">client.beta.assistants.<a href="./src/openai/resources/beta/assistants/assistants.py">update</a>(assistant_id, \*\*<a href="src/openai/types/beta/assistant_update_params.py">params</a>) -> <a href="./src/openai/types/beta/assistant.py">Assistant</a></code>
208208
- <code title="get /assistants">client.beta.assistants.<a href="./src/openai/resources/beta/assistants/assistants.py">list</a>(\*\*<a href="src/openai/types/beta/assistant_list_params.py">params</a>) -> <a href="./src/openai/types/beta/assistant.py">SyncCursorPage[Assistant]</a></code>
209-
- <code title="delete /assistants/{assistant_id}">client.beta.assistants.<a href="./src/openai/resources/beta/assistants/assistants.py">delete</a>(assistant_id) -> <a href="./src/openai/types/beta/asssitant_deleted.py">AsssitantDeleted</a></code>
209+
- <code title="delete /assistants/{assistant_id}">client.beta.assistants.<a href="./src/openai/resources/beta/assistants/assistants.py">delete</a>(assistant_id) -> <a href="./src/openai/types/beta/assistant_deleted.py">AssistantDeleted</a></code>
210210

211211
### Files
212212

src/openai/resources/beta/assistants/assistants.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from ....pagination import SyncCursorPage, AsyncCursorPage
1616
from ....types.beta import (
1717
Assistant,
18-
AsssitantDeleted,
18+
AssistantDeleted,
1919
assistant_list_params,
2020
assistant_create_params,
2121
assistant_update_params,
@@ -298,7 +298,7 @@ def delete(
298298
extra_query: Query | None = None,
299299
extra_body: Body | None = None,
300300
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
301-
) -> AsssitantDeleted:
301+
) -> AssistantDeleted:
302302
"""
303303
Delete an assistant.
304304
@@ -317,7 +317,7 @@ def delete(
317317
options=make_request_options(
318318
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
319319
),
320-
cast_to=AsssitantDeleted,
320+
cast_to=AssistantDeleted,
321321
)
322322

323323

@@ -591,7 +591,7 @@ async def delete(
591591
extra_query: Query | None = None,
592592
extra_body: Body | None = None,
593593
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
594-
) -> AsssitantDeleted:
594+
) -> AssistantDeleted:
595595
"""
596596
Delete an assistant.
597597
@@ -610,7 +610,7 @@ async def delete(
610610
options=make_request_options(
611611
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
612612
),
613-
cast_to=AsssitantDeleted,
613+
cast_to=AssistantDeleted,
614614
)
615615

616616

src/openai/types/beta/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from .thread import Thread as Thread
66
from .assistant import Assistant as Assistant
77
from .thread_deleted import ThreadDeleted as ThreadDeleted
8-
from .asssitant_deleted import AsssitantDeleted as AsssitantDeleted
8+
from .assistant_deleted import AssistantDeleted as AssistantDeleted
99
from .thread_create_params import ThreadCreateParams as ThreadCreateParams
1010
from .thread_update_params import ThreadUpdateParams as ThreadUpdateParams
1111
from .assistant_list_params import AssistantListParams as AssistantListParams

src/openai/types/beta/asssitant_deleted.py src/openai/types/beta/assistant_deleted.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
from ..._models import BaseModel
66

7-
__all__ = ["AsssitantDeleted"]
7+
__all__ = ["AssistantDeleted"]
88

99

10-
class AsssitantDeleted(BaseModel):
10+
class AssistantDeleted(BaseModel):
1111
id: str
1212

1313
deleted: bool

tests/api_resources/beta/test_assistants.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from tests.utils import assert_matches_type
1111
from openai._client import OpenAI, AsyncOpenAI
1212
from openai.pagination import SyncCursorPage, AsyncCursorPage
13-
from openai.types.beta import Assistant, AsssitantDeleted
13+
from openai.types.beta import Assistant, AssistantDeleted
1414

1515
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1616
api_key = "My API Key"
@@ -123,7 +123,7 @@ def test_method_delete(self, client: OpenAI) -> None:
123123
assistant = client.beta.assistants.delete(
124124
"string",
125125
)
126-
assert_matches_type(AsssitantDeleted, assistant, path=["response"])
126+
assert_matches_type(AssistantDeleted, assistant, path=["response"])
127127

128128
@parametrize
129129
def test_raw_response_delete(self, client: OpenAI) -> None:
@@ -132,7 +132,7 @@ def test_raw_response_delete(self, client: OpenAI) -> None:
132132
)
133133
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
134134
assistant = response.parse()
135-
assert_matches_type(AsssitantDeleted, assistant, path=["response"])
135+
assert_matches_type(AssistantDeleted, assistant, path=["response"])
136136

137137

138138
class TestAsyncAssistants:
@@ -242,7 +242,7 @@ async def test_method_delete(self, client: AsyncOpenAI) -> None:
242242
assistant = await client.beta.assistants.delete(
243243
"string",
244244
)
245-
assert_matches_type(AsssitantDeleted, assistant, path=["response"])
245+
assert_matches_type(AssistantDeleted, assistant, path=["response"])
246246

247247
@parametrize
248248
async def test_raw_response_delete(self, client: AsyncOpenAI) -> None:
@@ -251,4 +251,4 @@ async def test_raw_response_delete(self, client: AsyncOpenAI) -> None:
251251
)
252252
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
253253
assistant = response.parse()
254-
assert_matches_type(AsssitantDeleted, assistant, path=["response"])
254+
assert_matches_type(AssistantDeleted, assistant, path=["response"])

0 commit comments

Comments
 (0)