Skip to content

Commit

Permalink
add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier committed Jan 31, 2024
1 parent 859d85a commit f8d303b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ragna/assistants/_google.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f8d303b

Please sign in to comment.