Skip to content

Commit a4b914b

Browse files
seanzhougooglecopybara-github
authored andcommitted
fix: Set the default response modality to AUDIO only
Currently Live API only allow one response modality although the config is defined as a list. Co-authored-by: Xiang (Sean) Zhou <[email protected]> PiperOrigin-RevId: 853107710
1 parent 19de45b commit a4b914b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/google/adk/cli/adk_web_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1624,7 +1624,7 @@ async def run_agent_live(
16241624
user_id: str,
16251625
session_id: str,
16261626
modalities: List[Literal["TEXT", "AUDIO"]] = Query(
1627-
default=["TEXT", "AUDIO"]
1627+
default=["AUDIO"]
16281628
), # Only allows "TEXT" or "AUDIO"
16291629
) -> None:
16301630
await websocket.accept()

0 commit comments

Comments
 (0)