Skip to content

Commit

Permalink
chore(examples): minor formatting changes (#1644)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stainless Bot authored and stainless-app[bot] committed Aug 12, 2024
1 parent ab57d86 commit 092a8df
Show file tree
Hide file tree
Showing 6 changed files with 116 additions and 116 deletions.
4 changes: 2 additions & 2 deletions tests/api_resources/beta/test_assistants.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def test_method_create_with_all_params(self, client: OpenAI) -> None:
"vector_store_ids": ["string"],
"vector_stores": [
{
"file_ids": ["string", "string", "string"],
"chunking_strategy": {"type": "auto"},
"file_ids": ["string", "string", "string"],
"metadata": {},
}
],
Expand Down Expand Up @@ -276,8 +276,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncOpenAI) ->
"vector_store_ids": ["string"],
"vector_stores": [
{
"file_ids": ["string", "string", "string"],
"chunking_strategy": {"type": "auto"},
"file_ids": ["string", "string", "string"],
"metadata": {},
}
],
Expand Down
56 changes: 28 additions & 28 deletions tests/api_resources/beta/test_threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def test_method_create_with_all_params(self, client: OpenAI) -> None:
thread = client.beta.threads.create(
messages=[
{
"role": "user",
"content": "string",
"role": "user",
"attachments": [
{
"file_id": "string",
Expand Down Expand Up @@ -62,8 +62,8 @@ def test_method_create_with_all_params(self, client: OpenAI) -> None:
"metadata": {},
},
{
"role": "user",
"content": "string",
"role": "user",
"attachments": [
{
"file_id": "string",
Expand Down Expand Up @@ -93,8 +93,8 @@ def test_method_create_with_all_params(self, client: OpenAI) -> None:
"metadata": {},
},
{
"role": "user",
"content": "string",
"role": "user",
"attachments": [
{
"file_id": "string",
Expand Down Expand Up @@ -131,8 +131,8 @@ def test_method_create_with_all_params(self, client: OpenAI) -> None:
"vector_store_ids": ["string"],
"vector_stores": [
{
"file_ids": ["string", "string", "string"],
"chunking_strategy": {"type": "auto"},
"file_ids": ["string", "string", "string"],
"metadata": {},
}
],
Expand Down Expand Up @@ -310,8 +310,8 @@ def test_method_create_and_run_with_all_params_overload_1(self, client: OpenAI)
thread={
"messages": [
{
"role": "user",
"content": "string",
"role": "user",
"attachments": [
{
"file_id": "string",
Expand Down Expand Up @@ -341,8 +341,8 @@ def test_method_create_and_run_with_all_params_overload_1(self, client: OpenAI)
"metadata": {},
},
{
"role": "user",
"content": "string",
"role": "user",
"attachments": [
{
"file_id": "string",
Expand Down Expand Up @@ -372,8 +372,8 @@ def test_method_create_and_run_with_all_params_overload_1(self, client: OpenAI)
"metadata": {},
},
{
"role": "user",
"content": "string",
"role": "user",
"attachments": [
{
"file_id": "string",
Expand Down Expand Up @@ -403,20 +403,20 @@ def test_method_create_and_run_with_all_params_overload_1(self, client: OpenAI)
"metadata": {},
},
],
"metadata": {},
"tool_resources": {
"code_interpreter": {"file_ids": ["string", "string", "string"]},
"file_search": {
"vector_store_ids": ["string"],
"vector_stores": [
{
"file_ids": ["string", "string", "string"],
"chunking_strategy": {"type": "auto"},
"file_ids": ["string", "string", "string"],
"metadata": {},
}
],
},
},
"metadata": {},
},
tool_choice="none",
tool_resources={
Expand Down Expand Up @@ -480,8 +480,8 @@ def test_method_create_and_run_with_all_params_overload_2(self, client: OpenAI)
thread={
"messages": [
{
"role": "user",
"content": "string",
"role": "user",
"attachments": [
{
"file_id": "string",
Expand Down Expand Up @@ -511,8 +511,8 @@ def test_method_create_and_run_with_all_params_overload_2(self, client: OpenAI)
"metadata": {},
},
{
"role": "user",
"content": "string",
"role": "user",
"attachments": [
{
"file_id": "string",
Expand Down Expand Up @@ -542,8 +542,8 @@ def test_method_create_and_run_with_all_params_overload_2(self, client: OpenAI)
"metadata": {},
},
{
"role": "user",
"content": "string",
"role": "user",
"attachments": [
{
"file_id": "string",
Expand Down Expand Up @@ -573,20 +573,20 @@ def test_method_create_and_run_with_all_params_overload_2(self, client: OpenAI)
"metadata": {},
},
],
"metadata": {},
"tool_resources": {
"code_interpreter": {"file_ids": ["string", "string", "string"]},
"file_search": {
"vector_store_ids": ["string"],
"vector_stores": [
{
"file_ids": ["string", "string", "string"],
"chunking_strategy": {"type": "auto"},
"file_ids": ["string", "string", "string"],
"metadata": {},
}
],
},
},
"metadata": {},
},
tool_choice="none",
tool_resources={
Expand Down Expand Up @@ -641,8 +641,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncOpenAI) ->
thread = await async_client.beta.threads.create(
messages=[
{
"role": "user",
"content": "string",
"role": "user",
"attachments": [
{
"file_id": "string",
Expand Down Expand Up @@ -672,8 +672,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncOpenAI) ->
"metadata": {},
},
{
"role": "user",
"content": "string",
"role": "user",
"attachments": [
{
"file_id": "string",
Expand Down Expand Up @@ -703,8 +703,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncOpenAI) ->
"metadata": {},
},
{
"role": "user",
"content": "string",
"role": "user",
"attachments": [
{
"file_id": "string",
Expand Down Expand Up @@ -741,8 +741,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncOpenAI) ->
"vector_store_ids": ["string"],
"vector_stores": [
{
"file_ids": ["string", "string", "string"],
"chunking_strategy": {"type": "auto"},
"file_ids": ["string", "string", "string"],
"metadata": {},
}
],
Expand Down Expand Up @@ -920,8 +920,8 @@ async def test_method_create_and_run_with_all_params_overload_1(self, async_clie
thread={
"messages": [
{
"role": "user",
"content": "string",
"role": "user",
"attachments": [
{
"file_id": "string",
Expand Down Expand Up @@ -951,8 +951,8 @@ async def test_method_create_and_run_with_all_params_overload_1(self, async_clie
"metadata": {},
},
{
"role": "user",
"content": "string",
"role": "user",
"attachments": [
{
"file_id": "string",
Expand Down Expand Up @@ -982,8 +982,8 @@ async def test_method_create_and_run_with_all_params_overload_1(self, async_clie
"metadata": {},
},
{
"role": "user",
"content": "string",
"role": "user",
"attachments": [
{
"file_id": "string",
Expand Down Expand Up @@ -1013,20 +1013,20 @@ async def test_method_create_and_run_with_all_params_overload_1(self, async_clie
"metadata": {},
},
],
"metadata": {},
"tool_resources": {
"code_interpreter": {"file_ids": ["string", "string", "string"]},
"file_search": {
"vector_store_ids": ["string"],
"vector_stores": [
{
"file_ids": ["string", "string", "string"],
"chunking_strategy": {"type": "auto"},
"file_ids": ["string", "string", "string"],
"metadata": {},
}
],
},
},
"metadata": {},
},
tool_choice="none",
tool_resources={
Expand Down Expand Up @@ -1090,8 +1090,8 @@ async def test_method_create_and_run_with_all_params_overload_2(self, async_clie
thread={
"messages": [
{
"role": "user",
"content": "string",
"role": "user",
"attachments": [
{
"file_id": "string",
Expand Down Expand Up @@ -1121,8 +1121,8 @@ async def test_method_create_and_run_with_all_params_overload_2(self, async_clie
"metadata": {},
},
{
"role": "user",
"content": "string",
"role": "user",
"attachments": [
{
"file_id": "string",
Expand Down Expand Up @@ -1152,8 +1152,8 @@ async def test_method_create_and_run_with_all_params_overload_2(self, async_clie
"metadata": {},
},
{
"role": "user",
"content": "string",
"role": "user",
"attachments": [
{
"file_id": "string",
Expand Down Expand Up @@ -1183,20 +1183,20 @@ async def test_method_create_and_run_with_all_params_overload_2(self, async_clie
"metadata": {},
},
],
"metadata": {},
"tool_resources": {
"code_interpreter": {"file_ids": ["string", "string", "string"]},
"file_search": {
"vector_store_ids": ["string"],
"vector_stores": [
{
"file_ids": ["string", "string", "string"],
"chunking_strategy": {"type": "auto"},
"file_ids": ["string", "string", "string"],
"metadata": {},
}
],
},
},
"metadata": {},
},
tool_choice="none",
tool_resources={
Expand Down
Loading

0 comments on commit 092a8df

Please sign in to comment.