Commit 00ef2f47
Changed files (2)
src
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"],
)