Skip to content

Commit

Permalink
chore(streaming): update constructor to use direct client names (#991)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Dec 19, 2023
1 parent a045ef8 commit 3d6ca3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/openai/_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from ._exceptions import APIError

if TYPE_CHECKING:
from ._base_client import SyncAPIClient, AsyncAPIClient
from ._client import OpenAI, AsyncOpenAI


class Stream(Generic[ResponseT]):
Expand All @@ -25,7 +25,7 @@ def __init__(
*,
cast_to: type[ResponseT],
response: httpx.Response,
client: SyncAPIClient,
client: OpenAI,
) -> None:
self.response = response
self._cast_to = cast_to
Expand Down Expand Up @@ -79,7 +79,7 @@ def __init__(
*,
cast_to: type[ResponseT],
response: httpx.Response,
client: AsyncAPIClient,
client: AsyncOpenAI,
) -> None:
self.response = response
self._cast_to = cast_to
Expand Down

0 comments on commit 3d6ca3e

Please sign in to comment.