From 81732fd8deb3002a05065f3f60f4247c4ea977c8 Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Sat, 23 Dec 2023 23:40:50 +0000 Subject: [PATCH] docs: improve audio example to show how to stream to a file --- src/openai/resources/beta/assistants/assistants.py | 4 ++-- src/openai/types/beta/assistant_update_params.py | 2 +- src/openai/types/chat/chat_completion.py | 2 +- src/openai/types/moderation.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/openai/resources/beta/assistants/assistants.py b/src/openai/resources/beta/assistants/assistants.py index 8854c8b867..efa711ecf4 100644 --- a/src/openai/resources/beta/assistants/assistants.py +++ b/src/openai/resources/beta/assistants/assistants.py @@ -172,7 +172,7 @@ def update( file_ids: A list of [File](https://platform.openai.com/docs/api-reference/files) IDs attached to this assistant. There can be a maximum of 20 files attached to the assistant. Files are ordered by their creation date in ascending order. If a - file was previously attached to the list but does not show up in the list, it + file was previosuly attached to the list but does not show up in the list, it will be deleted from the assistant. instructions: The system instructions that the assistant uses. The maximum length is 32768 @@ -465,7 +465,7 @@ async def update( file_ids: A list of [File](https://platform.openai.com/docs/api-reference/files) IDs attached to this assistant. There can be a maximum of 20 files attached to the assistant. Files are ordered by their creation date in ascending order. If a - file was previously attached to the list but does not show up in the list, it + file was previosuly attached to the list but does not show up in the list, it will be deleted from the assistant. instructions: The system instructions that the assistant uses. The maximum length is 32768 diff --git a/src/openai/types/beta/assistant_update_params.py b/src/openai/types/beta/assistant_update_params.py index dfb5d4c553..a0efd96ecd 100644 --- a/src/openai/types/beta/assistant_update_params.py +++ b/src/openai/types/beta/assistant_update_params.py @@ -25,7 +25,7 @@ class AssistantUpdateParams(TypedDict, total=False): A list of [File](https://platform.openai.com/docs/api-reference/files) IDs attached to this assistant. There can be a maximum of 20 files attached to the assistant. Files are ordered by their creation date in ascending order. If a - file was previously attached to the list but does not show up in the list, it + file was previosuly attached to the list but does not show up in the list, it will be deleted from the assistant. """ diff --git a/src/openai/types/chat/chat_completion.py b/src/openai/types/chat/chat_completion.py index b2e98a3144..055280c347 100644 --- a/src/openai/types/chat/chat_completion.py +++ b/src/openai/types/chat/chat_completion.py @@ -30,7 +30,7 @@ class Choice(BaseModel): index: int """The index of the choice in the list of choices.""" - logprobs: Optional[ChoiceLogprobs] = None + logprobs: Optional[ChoiceLogprobs] """Log probability information for the choice.""" message: ChatCompletionMessage diff --git a/src/openai/types/moderation.py b/src/openai/types/moderation.py index 09c9a6058b..3602a46985 100644 --- a/src/openai/types/moderation.py +++ b/src/openai/types/moderation.py @@ -25,7 +25,7 @@ class Categories(BaseModel): Content that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste. Hateful content aimed at non-protected groups (e.g., chess players) is - harassment. + harrassment. """ hate_threatening: bool = FieldInfo(alias="hate/threatening")