More consistent tool calling for GPT-5

@kinghypnos I saw this last week but can no longer repro. But I can describe what I was seeing and how I addressed. I had a series of tools and my response instructions asked the model to create XML back to the user.

Instead of seeing tool calls, I was getting tool calls formatted into the user output, similar to what others have reported Tool Calls placed inside content and an even stranger one Model tries to call unknown function multi_tool_use.parallel

what “solved” it for me was the following. I will probably try to remove these fixes on my next refactor because they feel like work-arounds:

  1. gpt-5 accepts a “temperature” parameter but it must be set to 1 or the API call throws an error. What I found is that REMOVING this parameter had different behavior than merely setting it to 1. Some of the other forum members challenged this so I tested it and it no longer appears to be the case (thank you @merefield )

  2. I look for “.” in the tool name and bounce the response back to the model by adding a conversation turn asking it to correct the error. Yuck but it got the application back up and running, and I’ll follow-up with a retest to remove the hack if it works without.

  3. I look for “parallel” or “functions.” in the user output and bounce these back to the model also. Another yuck.

Hope it helps. I don’t like to propagate campfire knowledge but these patches got me running…

Mike