Open AI API Compatibility

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.

4 Likes

Great catch!
Hopefully, this is going to help the team to progress on the use of multiple tools.

1 Like