Skip to content

Commit

Permalink
docs: Add comment about response modalities limitation (#417)
Browse files Browse the repository at this point in the history
* docs: Add comment about response modalities limitation

* Line length formatting

---------

Co-authored-by: Mark McDonald <macd@google.com>
  • Loading branch information
paulelliotco and markmcd authored Jan 23, 2025
1 parent 58ef4ee commit 57c3bf1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gemini-2/live_api_starter.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@

client = genai.Client(http_options={"api_version": "v1alpha"})

# While Gemini 2.0 Flash is in experimental preview mode, only one of AUDIO or
# TEXT may be passed here.
CONFIG = {"generation_config": {"response_modalities": ["AUDIO"]}}

pya = pyaudio.PyAudio()
Expand Down

0 comments on commit 57c3bf1

Please sign in to comment.