From 43dfc49ab9a9a43567401886d32f313563af8a65 Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Tue, 19 Dec 2023 18:22:10 +0000 Subject: [PATCH] chore(internal): fix typos --- src/openai/_base_client.py | 2 +- src/openai/_streaming.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openai/_base_client.py b/src/openai/_base_client.py index 92189617b5..481171a447 100644 --- a/src/openai/_base_client.py +++ b/src/openai/_base_client.py @@ -107,7 +107,7 @@ 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. """ diff --git a/src/openai/_streaming.py b/src/openai/_streaming.py index f1896a242a..85cec70c11 100644 --- a/src/openai/_streaming.py +++ b/src/openai/_streaming.py @@ -60,7 +60,7 @@ def __stream__(self) -> Iterator[_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 @@ async def __stream__(self) -> AsyncIterator[_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"], )