I’ve been working with the OpenAI API using the Gemini models and came across what seems to be a potential bug in the API’s functionality. Specifically, the issue arises in “auto” mode:
The finish_reason
parameter always returns stop
when a tool is called, instead of tool_calls
. This behavior disrupts the basic loop needed for the model to perform multi-step actions before returning a final response.