We are using gemini as primary model for our agent when switched to OpenRouter model object I get error indicating that tool call has no name and with a single line change in the OpenAi like format_response method the problem has been solved
My question is has anyone encountered with this issue and is there more well formatted way to change it?
Error from open router
ERROR API status error from OpenAI API: Error code: 400 -
{'error': {'message': 'Provider returned error', 'code': 400, 'metadata': {'raw': '{\n "error": {\n "code": 400,\n
"message": "* GenerateContentRequest.contents[2].parts[0].function_response.name: Name cannot be empty.\\n",\n "status": "INVALID_ARGUMENT"\n }\n}\n', 'provider_name': 'Google AI
Studio'}}, 'user_id': 'xxxxx'}