Skip to content

Commit

Permalink
Extra logging
Browse files Browse the repository at this point in the history
  • Loading branch information
markmcd committed Dec 11, 2024
1 parent 22ee2af commit 44ac24c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gemini-2/websockets/shell_websockets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#set -ex

# This script shows you how to use `websocat` to interact with the Gemini 2.0
# Multimodal Live API.
# Multimodal Live API.

# You need to set $GOOGLE_API_KEY
# And you'll need:
Expand Down Expand Up @@ -35,7 +35,7 @@ echo "Output processing..."
# Launch the model connection and wire it up to the pipes.
websocat -n wss://${HOST}/ws/google.ai.generativelanguage.v1alpha.GenerativeService.BidiGenerateContent?key=${API_KEY} <gemini_input >gemini_output &
socket_pid=$!
#echo "Model connected."
echo "Model connected."

# Issue setup handshake.
echo '{"setup": {"model": "models/'${MODEL}'", "generation_config": {"response_modalities":["TEXT"]}}}' |tee >(jq) >gemini_input
Expand Down

0 comments on commit 44ac24c

Please sign in to comment.