Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(examples): minor formatting changes #1644

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": "file_id",
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": "file_id",
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": "file_id",
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": "file_id",
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": "file_id",
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": "file_id",
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": "file_id",
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": "file_id",
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": "file_id",
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": "file_id",
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": "file_id",
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": "file_id",
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": "file_id",
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": "file_id",
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": "file_id",
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": "file_id",
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": "file_id",
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": "file_id",
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