Commit 00ef2f47

Stainless Bot <107565488+stainless-bot@users.noreply.github.com>
2023-12-20 02:22:14
chore(internal): fix typos (#993)
1 parent 052e611
Changed files (2)
src/openai/_base_client.py
@@ -107,7 +107,7 @@ else:
 
 
 class PageInfo:
-    """Stores the necesary information to build the request to retrieve the next page.
+    """Stores the necessary information to build the request to retrieve the next page.
 
     Either `url` or `params` must be set.
     """
src/openai/_streaming.py
@@ -60,7 +60,7 @@ class Stream(Generic[_T]):
                 data = sse.json()
                 if is_mapping(data) and data.get("error"):
                     raise APIError(
-                        message="An error ocurred during streaming",
+                        message="An error occurred during streaming",
                         request=self.response.request,
                         body=data["error"],
                     )
@@ -134,7 +134,7 @@ class AsyncStream(Generic[_T]):
                 data = sse.json()
                 if is_mapping(data) and data.get("error"):
                     raise APIError(
-                        message="An error ocurred during streaming",
+                        message="An error occurred during streaming",
                         request=self.response.request,
                         body=data["error"],
                     )