Skip to content

Commit

Permalink
fix: change content fn signature to asyncgen
Browse files Browse the repository at this point in the history
  • Loading branch information
AlmogBaku committed Sep 27, 2023
1 parent 6c65c28 commit 5f05d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openai_streaming/stream_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def preprocess(self, key, current_dict):

async def process_response(
response: Union[Iterator[OpenAIObject], List[OpenAIObject]],
content_func: Optional[Callable[[Generator[str, None, None]], Awaitable[None]]] = None,
content_func: Optional[Callable[[AsyncGenerator[str, None]], Awaitable[None]]] = None,
funcs: Optional[List[Callable[[], Awaitable[None]]]] = None,
self: Optional = None
) -> Tuple[Set[str], Dict[str, Any]]:
Expand Down

0 comments on commit 5f05d46

Please sign in to comment.