Skip to content

Commit 3d6ca3e

Browse files
committed
chore(streaming): update constructor to use direct client names (#991)
1 parent a045ef8 commit 3d6ca3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/openai/_streaming.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from ._exceptions import APIError
1313

1414
if TYPE_CHECKING:
15-
from ._base_client import SyncAPIClient, AsyncAPIClient
15+
from ._client import OpenAI, AsyncOpenAI
1616

1717

1818
class Stream(Generic[ResponseT]):
@@ -25,7 +25,7 @@ def __init__(
2525
*,
2626
cast_to: type[ResponseT],
2727
response: httpx.Response,
28-
client: SyncAPIClient,
28+
client: OpenAI,
2929
) -> None:
3030
self.response = response
3131
self._cast_to = cast_to
@@ -79,7 +79,7 @@ def __init__(
7979
*,
8080
cast_to: type[ResponseT],
8181
response: httpx.Response,
82-
client: AsyncAPIClient,
82+
client: AsyncOpenAI,
8383
) -> None:
8484
self.response = response
8585
self._cast_to = cast_to

0 commit comments

Comments
 (0)