Commit 47f35921

Stainless Bot <107565488+stainless-bot@users.noreply.github.com>
2023-12-24 07:40:55
docs: improve audio example to show how to stream to a file (#1017)
1 parent ecc3b44
Changed files (4)
src
openai
src/openai/resources/beta/assistants/assistants.py
@@ -172,7 +172,7 @@ class Assistants(SyncAPIResource):
           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 @@ class AsyncAssistants(AsyncAPIResource):
           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
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.
     """
 
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
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")