diff --git a/ragna/assistants/_google.py b/ragna/assistants/_google.py index 7b1c6e59..24bf9071 100644 --- a/ragna/assistants/_google.py +++ b/ragna/assistants/_google.py @@ -41,6 +41,9 @@ def _call_api( ) -> Iterator[str]: import json_stream.httpx + # TODO: Use the async client and make this method async as soon when json-stream + # supports async JSON stream. + # See https://github.com/daggaz/json-stream/issues/54 with self._sync_client.stream( "POST", f"https://generativelanguage.googleapis.com/v1beta/models/{self._MODEL}:streamGenerateContent",