Skip to content

Commit

Permalink
chore(internal): minor formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertCraigie committed Jul 15, 2024
1 parent ec4511a commit ee1c62e
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 10 deletions.
1 change: 0 additions & 1 deletion examples/assistant.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import openai

# gets API Key from environment variable OPENAI_API_KEY
Expand Down
6 changes: 4 additions & 2 deletions src/openai/resources/beta/vector_stores/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,9 @@ async def upload(
polling helper method to wait for processing to complete).
"""
file_obj = await self._client.files.create(file=file, purpose="assistants")
return await self.create(vector_store_id=vector_store_id, file_id=file_obj.id, chunking_strategy=chunking_strategy)
return await self.create(
vector_store_id=vector_store_id, file_id=file_obj.id, chunking_strategy=chunking_strategy
)

async def upload_and_poll(
self,
Expand All @@ -627,7 +629,7 @@ async def upload_and_poll(
vector_store_id=vector_store_id,
file_id=file_obj.id,
poll_interval_ms=poll_interval_ms,
chunking_strategy=chunking_strategy
chunking_strategy=chunking_strategy,
)


Expand Down
1 change: 0 additions & 1 deletion src/openai/types/audio/transcription.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.



from ..._models import BaseModel

__all__ = ["Transcription"]
Expand Down
1 change: 0 additions & 1 deletion src/openai/types/audio/translation.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.



from ..._models import BaseModel

__all__ = ["Translation"]
Expand Down
1 change: 0 additions & 1 deletion src/openai/types/batch_request_counts.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.



from .._models import BaseModel

__all__ = ["BatchRequestCounts"]
Expand Down
1 change: 0 additions & 1 deletion src/openai/types/beta/assistant_tool_choice_function.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.



from ..._models import BaseModel

__all__ = ["AssistantToolChoiceFunction"]
Expand Down
1 change: 0 additions & 1 deletion src/openai/types/completion_usage.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.



from .._models import BaseModel

__all__ = ["CompletionUsage"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.



from .fine_tuning_job_wandb_integration_object import FineTuningJobWandbIntegrationObject

FineTuningJobIntegration = FineTuningJobWandbIntegrationObject
1 change: 0 additions & 1 deletion src/openai/types/model_deleted.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.



from .._models import BaseModel

__all__ = ["ModelDeleted"]
Expand Down
1 change: 1 addition & 0 deletions tests/lib/test_assistants.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def test_create_and_run_poll_method_definition_in_sync(sync: bool, client: OpenA
exclude_params={"stream"},
)


@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
def test_create_and_run_stream_method_definition_in_sync(sync: bool, client: OpenAI, async_client: AsyncOpenAI) -> None:
checking_client: OpenAI | AsyncOpenAI = client if sync else async_client
Expand Down

0 comments on commit ee1c62e

Please sign in to comment.