cookbook icon indicating copy to clipboard operation
cookbook copied to clipboard

Fix DeprecationWarning

Open SmartManoj opened this issue 4 months ago • 3 comments

https://github.com/google-gemini/cookbook/blob/d1eed253584683b1a435783cf5f319bb235aea97/quickstarts/Get_started_LiveAPI.py#L181

DeprecationWarning :The session.send method is deprecated and will be removed in a future version (not before Q3 2025). Please use one of the more specific methods: send_client_content, send_realtime_input, or send_tool_response instead. await self.session.send(input=msg)

SmartManoj avatar Jul 28 '25 08:07 SmartManoj

Hey, Do you mind sharing the full code where you switched from session.send to send_client_content? Just want to see how you are doing it.

Gunand3043 avatar Jul 30 '25 09:07 Gunand3043

https://github.com/SmartManoj/cookbook/commit/83cbd791c192d8ee37a4c6c9b19ae19737629723 (already mentioned in that issue)

SmartManoj avatar Jul 30 '25 10:07 SmartManoj

@Gunand3043 - cookbook/quickstarts/Get_started_LiveAPI.py is the code.

MarkDaoust avatar Aug 05 '25 23:08 MarkDaoust