@@ -32,10 +32,10 @@ def test_method_create(self, client: OpenAI) -> None:
32
32
def test_method_create_with_all_params (self , client : OpenAI ) -> None :
33
33
assistant = client .beta .assistants .create (
34
34
model = "gpt-4-turbo" ,
35
- description = "string " ,
36
- instructions = "string " ,
35
+ description = "description " ,
36
+ instructions = "instructions " ,
37
37
metadata = {},
38
- name = "string " ,
38
+ name = "name " ,
39
39
response_format = "none" ,
40
40
temperature = 1 ,
41
41
tool_resources = {
@@ -83,14 +83,14 @@ def test_streaming_response_create(self, client: OpenAI) -> None:
83
83
@parametrize
84
84
def test_method_retrieve (self , client : OpenAI ) -> None :
85
85
assistant = client .beta .assistants .retrieve (
86
- "string " ,
86
+ "assistant_id " ,
87
87
)
88
88
assert_matches_type (Assistant , assistant , path = ["response" ])
89
89
90
90
@parametrize
91
91
def test_raw_response_retrieve (self , client : OpenAI ) -> None :
92
92
response = client .beta .assistants .with_raw_response .retrieve (
93
- "string " ,
93
+ "assistant_id " ,
94
94
)
95
95
96
96
assert response .is_closed is True
@@ -101,7 +101,7 @@ def test_raw_response_retrieve(self, client: OpenAI) -> None:
101
101
@parametrize
102
102
def test_streaming_response_retrieve (self , client : OpenAI ) -> None :
103
103
with client .beta .assistants .with_streaming_response .retrieve (
104
- "string " ,
104
+ "assistant_id " ,
105
105
) as response :
106
106
assert not response .is_closed
107
107
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -121,19 +121,19 @@ def test_path_params_retrieve(self, client: OpenAI) -> None:
121
121
@parametrize
122
122
def test_method_update (self , client : OpenAI ) -> None :
123
123
assistant = client .beta .assistants .update (
124
- "string " ,
124
+ assistant_id = "assistant_id " ,
125
125
)
126
126
assert_matches_type (Assistant , assistant , path = ["response" ])
127
127
128
128
@parametrize
129
129
def test_method_update_with_all_params (self , client : OpenAI ) -> None :
130
130
assistant = client .beta .assistants .update (
131
- "string " ,
132
- description = "string " ,
133
- instructions = "string " ,
131
+ assistant_id = "assistant_id " ,
132
+ description = "description " ,
133
+ instructions = "instructions " ,
134
134
metadata = {},
135
- model = "string " ,
136
- name = "string " ,
135
+ model = "model " ,
136
+ name = "name " ,
137
137
response_format = "none" ,
138
138
temperature = 1 ,
139
139
tool_resources = {
@@ -148,7 +148,7 @@ def test_method_update_with_all_params(self, client: OpenAI) -> None:
148
148
@parametrize
149
149
def test_raw_response_update (self , client : OpenAI ) -> None :
150
150
response = client .beta .assistants .with_raw_response .update (
151
- "string " ,
151
+ assistant_id = "assistant_id " ,
152
152
)
153
153
154
154
assert response .is_closed is True
@@ -159,7 +159,7 @@ def test_raw_response_update(self, client: OpenAI) -> None:
159
159
@parametrize
160
160
def test_streaming_response_update (self , client : OpenAI ) -> None :
161
161
with client .beta .assistants .with_streaming_response .update (
162
- "string " ,
162
+ assistant_id = "assistant_id " ,
163
163
) as response :
164
164
assert not response .is_closed
165
165
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -173,7 +173,7 @@ def test_streaming_response_update(self, client: OpenAI) -> None:
173
173
def test_path_params_update (self , client : OpenAI ) -> None :
174
174
with pytest .raises (ValueError , match = r"Expected a non-empty value for `assistant_id` but received ''" ):
175
175
client .beta .assistants .with_raw_response .update (
176
- "" ,
176
+ assistant_id = "" ,
177
177
)
178
178
179
179
@parametrize
@@ -184,8 +184,8 @@ def test_method_list(self, client: OpenAI) -> None:
184
184
@parametrize
185
185
def test_method_list_with_all_params (self , client : OpenAI ) -> None :
186
186
assistant = client .beta .assistants .list (
187
- after = "string " ,
188
- before = "string " ,
187
+ after = "after " ,
188
+ before = "before " ,
189
189
limit = 0 ,
190
190
order = "asc" ,
191
191
)
@@ -214,14 +214,14 @@ def test_streaming_response_list(self, client: OpenAI) -> None:
214
214
@parametrize
215
215
def test_method_delete (self , client : OpenAI ) -> None :
216
216
assistant = client .beta .assistants .delete (
217
- "string " ,
217
+ "assistant_id " ,
218
218
)
219
219
assert_matches_type (AssistantDeleted , assistant , path = ["response" ])
220
220
221
221
@parametrize
222
222
def test_raw_response_delete (self , client : OpenAI ) -> None :
223
223
response = client .beta .assistants .with_raw_response .delete (
224
- "string " ,
224
+ "assistant_id " ,
225
225
)
226
226
227
227
assert response .is_closed is True
@@ -232,7 +232,7 @@ def test_raw_response_delete(self, client: OpenAI) -> None:
232
232
@parametrize
233
233
def test_streaming_response_delete (self , client : OpenAI ) -> None :
234
234
with client .beta .assistants .with_streaming_response .delete (
235
- "string " ,
235
+ "assistant_id " ,
236
236
) as response :
237
237
assert not response .is_closed
238
238
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -264,10 +264,10 @@ async def test_method_create(self, async_client: AsyncOpenAI) -> None:
264
264
async def test_method_create_with_all_params (self , async_client : AsyncOpenAI ) -> None :
265
265
assistant = await async_client .beta .assistants .create (
266
266
model = "gpt-4-turbo" ,
267
- description = "string " ,
268
- instructions = "string " ,
267
+ description = "description " ,
268
+ instructions = "instructions " ,
269
269
metadata = {},
270
- name = "string " ,
270
+ name = "name " ,
271
271
response_format = "none" ,
272
272
temperature = 1 ,
273
273
tool_resources = {
@@ -315,14 +315,14 @@ async def test_streaming_response_create(self, async_client: AsyncOpenAI) -> Non
315
315
@parametrize
316
316
async def test_method_retrieve (self , async_client : AsyncOpenAI ) -> None :
317
317
assistant = await async_client .beta .assistants .retrieve (
318
- "string " ,
318
+ "assistant_id " ,
319
319
)
320
320
assert_matches_type (Assistant , assistant , path = ["response" ])
321
321
322
322
@parametrize
323
323
async def test_raw_response_retrieve (self , async_client : AsyncOpenAI ) -> None :
324
324
response = await async_client .beta .assistants .with_raw_response .retrieve (
325
- "string " ,
325
+ "assistant_id " ,
326
326
)
327
327
328
328
assert response .is_closed is True
@@ -333,7 +333,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOpenAI) -> None:
333
333
@parametrize
334
334
async def test_streaming_response_retrieve (self , async_client : AsyncOpenAI ) -> None :
335
335
async with async_client .beta .assistants .with_streaming_response .retrieve (
336
- "string " ,
336
+ "assistant_id " ,
337
337
) as response :
338
338
assert not response .is_closed
339
339
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -353,19 +353,19 @@ async def test_path_params_retrieve(self, async_client: AsyncOpenAI) -> None:
353
353
@parametrize
354
354
async def test_method_update (self , async_client : AsyncOpenAI ) -> None :
355
355
assistant = await async_client .beta .assistants .update (
356
- "string " ,
356
+ assistant_id = "assistant_id " ,
357
357
)
358
358
assert_matches_type (Assistant , assistant , path = ["response" ])
359
359
360
360
@parametrize
361
361
async def test_method_update_with_all_params (self , async_client : AsyncOpenAI ) -> None :
362
362
assistant = await async_client .beta .assistants .update (
363
- "string " ,
364
- description = "string " ,
365
- instructions = "string " ,
363
+ assistant_id = "assistant_id " ,
364
+ description = "description " ,
365
+ instructions = "instructions " ,
366
366
metadata = {},
367
- model = "string " ,
368
- name = "string " ,
367
+ model = "model " ,
368
+ name = "name " ,
369
369
response_format = "none" ,
370
370
temperature = 1 ,
371
371
tool_resources = {
@@ -380,7 +380,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncOpenAI) ->
380
380
@parametrize
381
381
async def test_raw_response_update (self , async_client : AsyncOpenAI ) -> None :
382
382
response = await async_client .beta .assistants .with_raw_response .update (
383
- "string " ,
383
+ assistant_id = "assistant_id " ,
384
384
)
385
385
386
386
assert response .is_closed is True
@@ -391,7 +391,7 @@ async def test_raw_response_update(self, async_client: AsyncOpenAI) -> None:
391
391
@parametrize
392
392
async def test_streaming_response_update (self , async_client : AsyncOpenAI ) -> None :
393
393
async with async_client .beta .assistants .with_streaming_response .update (
394
- "string " ,
394
+ assistant_id = "assistant_id " ,
395
395
) as response :
396
396
assert not response .is_closed
397
397
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -405,7 +405,7 @@ async def test_streaming_response_update(self, async_client: AsyncOpenAI) -> Non
405
405
async def test_path_params_update (self , async_client : AsyncOpenAI ) -> None :
406
406
with pytest .raises (ValueError , match = r"Expected a non-empty value for `assistant_id` but received ''" ):
407
407
await async_client .beta .assistants .with_raw_response .update (
408
- "" ,
408
+ assistant_id = "" ,
409
409
)
410
410
411
411
@parametrize
@@ -416,8 +416,8 @@ async def test_method_list(self, async_client: AsyncOpenAI) -> None:
416
416
@parametrize
417
417
async def test_method_list_with_all_params (self , async_client : AsyncOpenAI ) -> None :
418
418
assistant = await async_client .beta .assistants .list (
419
- after = "string " ,
420
- before = "string " ,
419
+ after = "after " ,
420
+ before = "before " ,
421
421
limit = 0 ,
422
422
order = "asc" ,
423
423
)
@@ -446,14 +446,14 @@ async def test_streaming_response_list(self, async_client: AsyncOpenAI) -> None:
446
446
@parametrize
447
447
async def test_method_delete (self , async_client : AsyncOpenAI ) -> None :
448
448
assistant = await async_client .beta .assistants .delete (
449
- "string " ,
449
+ "assistant_id " ,
450
450
)
451
451
assert_matches_type (AssistantDeleted , assistant , path = ["response" ])
452
452
453
453
@parametrize
454
454
async def test_raw_response_delete (self , async_client : AsyncOpenAI ) -> None :
455
455
response = await async_client .beta .assistants .with_raw_response .delete (
456
- "string " ,
456
+ "assistant_id " ,
457
457
)
458
458
459
459
assert response .is_closed is True
@@ -464,7 +464,7 @@ async def test_raw_response_delete(self, async_client: AsyncOpenAI) -> None:
464
464
@parametrize
465
465
async def test_streaming_response_delete (self , async_client : AsyncOpenAI ) -> None :
466
466
async with async_client .beta .assistants .with_streaming_response .delete (
467
- "string " ,
467
+ "assistant_id " ,
468
468
) as response :
469
469
assert not response .is_closed
470
470
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
0 commit comments