Skip to content

Commit 3b338a4

Browse files
chore(internal): fix typos (#993)
1 parent 5ba576a commit 3b338a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/openai/_base_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107

108108

109109
class PageInfo:
110-
"""Stores the necesary information to build the request to retrieve the next page.
110+
"""Stores the necessary information to build the request to retrieve the next page.
111111
112112
Either `url` or `params` must be set.
113113
"""

src/openai/_streaming.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def __stream__(self) -> Iterator[_T]:
6060
data = sse.json()
6161
if is_mapping(data) and data.get("error"):
6262
raise APIError(
63-
message="An error ocurred during streaming",
63+
message="An error occurred during streaming",
6464
request=self.response.request,
6565
body=data["error"],
6666
)
@@ -134,7 +134,7 @@ async def __stream__(self) -> AsyncIterator[_T]:
134134
data = sse.json()
135135
if is_mapping(data) and data.get("error"):
136136
raise APIError(
137-
message="An error ocurred during streaming",
137+
message="An error occurred during streaming",
138138
request=self.response.request,
139139
body=data["error"],
140140
)

0 commit comments

Comments
 (0)