Skip to content

Commit 5f05d46

Browse files
committed
fix: change content fn signature to asyncgen
1 parent 6c65c28 commit 5f05d46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openai_streaming/stream_processing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def preprocess(self, key, current_dict):
100100

101101
async def process_response(
102102
response: Union[Iterator[OpenAIObject], List[OpenAIObject]],
103-
content_func: Optional[Callable[[Generator[str, None, None]], Awaitable[None]]] = None,
103+
content_func: Optional[Callable[[AsyncGenerator[str, None]], Awaitable[None]]] = None,
104104
funcs: Optional[List[Callable[[], Awaitable[None]]]] = None,
105105
self: Optional = None
106106
) -> Tuple[Set[str], Dict[str, Any]]:

0 commit comments

Comments
 (0)