Skip to content

Commit 1e550df

Browse files
author
Stainless Bot
committed
chore(tests): limit array example length (#1870)
1 parent 52357cf commit 1e550df

File tree

9 files changed

+146
-1106
lines changed

9 files changed

+146
-1106
lines changed

tests/api_resources/audio/test_transcriptions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def test_method_create_with_all_params(self, client: OpenAI) -> None:
3434
prompt="string",
3535
response_format="json",
3636
temperature=0,
37-
timestamp_granularities=["word", "segment"],
37+
timestamp_granularities=["word"],
3838
)
3939
assert_matches_type(TranscriptionCreateResponse, transcription, path=["response"])
4040

@@ -85,7 +85,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOpenAI) ->
8585
prompt="string",
8686
response_format="json",
8787
temperature=0,
88-
timestamp_granularities=["word", "segment"],
88+
timestamp_granularities=["word"],
8989
)
9090
assert_matches_type(TranscriptionCreateResponse, transcription, path=["response"])
9191

tests/api_resources/beta/test_assistants.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,19 @@ def test_method_create_with_all_params(self, client: OpenAI) -> None:
3939
response_format="auto",
4040
temperature=1,
4141
tool_resources={
42-
"code_interpreter": {"file_ids": ["string", "string", "string"]},
42+
"code_interpreter": {"file_ids": ["string"]},
4343
"file_search": {
4444
"vector_store_ids": ["string"],
4545
"vector_stores": [
4646
{
4747
"chunking_strategy": {"type": "auto"},
48-
"file_ids": ["string", "string", "string"],
48+
"file_ids": ["string"],
4949
"metadata": {},
5050
}
5151
],
5252
},
5353
},
54-
tools=[{"type": "code_interpreter"}, {"type": "code_interpreter"}, {"type": "code_interpreter"}],
54+
tools=[{"type": "code_interpreter"}],
5555
top_p=1,
5656
)
5757
assert_matches_type(Assistant, assistant, path=["response"])
@@ -137,10 +137,10 @@ def test_method_update_with_all_params(self, client: OpenAI) -> None:
137137
response_format="auto",
138138
temperature=1,
139139
tool_resources={
140-
"code_interpreter": {"file_ids": ["string", "string", "string"]},
140+
"code_interpreter": {"file_ids": ["string"]},
141141
"file_search": {"vector_store_ids": ["string"]},
142142
},
143-
tools=[{"type": "code_interpreter"}, {"type": "code_interpreter"}, {"type": "code_interpreter"}],
143+
tools=[{"type": "code_interpreter"}],
144144
top_p=1,
145145
)
146146
assert_matches_type(Assistant, assistant, path=["response"])
@@ -271,19 +271,19 @@ async def test_method_create_with_all_params(self, async_client: AsyncOpenAI) ->
271271
response_format="auto",
272272
temperature=1,
273273
tool_resources={
274-
"code_interpreter": {"file_ids": ["string", "string", "string"]},
274+
"code_interpreter": {"file_ids": ["string"]},
275275
"file_search": {
276276
"vector_store_ids": ["string"],
277277
"vector_stores": [
278278
{
279279
"chunking_strategy": {"type": "auto"},
280-
"file_ids": ["string", "string", "string"],
280+
"file_ids": ["string"],
281281
"metadata": {},
282282
}
283283
],
284284
},
285285
},
286-
tools=[{"type": "code_interpreter"}, {"type": "code_interpreter"}, {"type": "code_interpreter"}],
286+
tools=[{"type": "code_interpreter"}],
287287
top_p=1,
288288
)
289289
assert_matches_type(Assistant, assistant, path=["response"])
@@ -369,10 +369,10 @@ async def test_method_update_with_all_params(self, async_client: AsyncOpenAI) ->
369369
response_format="auto",
370370
temperature=1,
371371
tool_resources={
372-
"code_interpreter": {"file_ids": ["string", "string", "string"]},
372+
"code_interpreter": {"file_ids": ["string"]},
373373
"file_search": {"vector_store_ids": ["string"]},
374374
},
375-
tools=[{"type": "code_interpreter"}, {"type": "code_interpreter"}, {"type": "code_interpreter"}],
375+
tools=[{"type": "code_interpreter"}],
376376
top_p=1,
377377
)
378378
assert_matches_type(Assistant, assistant, path=["response"])

0 commit comments

Comments
 (0)