Skip to content

(google realtime): replace deprecated mediaChunks#5089

Merged
tinalenguyen merged 2 commits intomainfrom
tina/gemini-remove-mediachunks
Mar 12, 2026
Merged

(google realtime): replace deprecated mediaChunks#5089
tinalenguyen merged 2 commits intomainfrom
tina/gemini-remove-mediachunks

Conversation

@tinalenguyen
Copy link
Member

mediaChunks is deprecated, use audio, video , and text instead

reference

@chenghao-mou chenghao-mou requested a review from a team March 11, 2026 22:24
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

Comment on lines +908 to +912
await session.send_realtime_input(audio=msg.audio)
elif msg.video:
await session.send_realtime_input(video=msg.video)
elif msg.text:
await session.send_realtime_input(text=msg.text)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can they be sent at the same time? What's the best thing to do here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can only send one argument per call or else google throws an error

@tinalenguyen tinalenguyen merged commit 073f5c2 into main Mar 12, 2026
19 checks passed
@tinalenguyen tinalenguyen deleted the tina/gemini-remove-mediachunks branch March 12, 2026 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants