You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within the gemini.py file of gemini_mulimodal_live, we have the below code in the connect method which is basically within which we setup tools and send google this information (which works fine as when I pass tools while initialising GeminiMultimodalLiveLLMService there is no bug).
asyncdef_connect(self):
...
ifself._tools:
logger.debug(f"Gemini is configuring to use tools{self._tools}")
config.setup.tools=self._toolsawaitself.send_client_event(config)
The problem comes when I want it to work via context - the code below is supposed to update the tools but doesn’t as we never really send the updated tool information to google. And in multimodal gemini we dont send tool info on every request.
I believe the fix could be in elif isinstance(frame, OpenAILLMContextFrame): or _create_initial_response just adding some new google request with updated tool information.
The text was updated successfully, but these errors were encountered:
Within the gemini.py file of gemini_mulimodal_live, we have the below code in the connect method which is basically within which we setup tools and send google this information (which works fine as when I pass tools while initialising GeminiMultimodalLiveLLMService there is no bug).
The problem comes when I want it to work via context - the code below is supposed to update the tools but doesn’t as we never really send the updated tool information to google. And in multimodal gemini we dont send tool info on every request.
This isnt a problem with other llms as we normally pass self.tools as an argument during chat completions on every request.
for example in openai.py :
I believe the fix could be in elif isinstance(frame, OpenAILLMContextFrame): or _create_initial_response just adding some new google request with updated tool information.
The text was updated successfully, but these errors were encountered: