embabel-agent icon indicating copy to clipboard operation
embabel-agent copied to clipboard

Flaky IT: gpt-5-pro sometimes skips the tool in OpenAiCatalogIT

Open azanux opened this issue 1 month ago • 4 comments

OpenAiCatalogIT tool test failed once for gpt-5-pro, then passed on rerun:

OpenAiCatalogIT.each catalog model answers a tool-carrying request over its declared transport:197
gpt-5-pro never called the tool, so the answer cannot be grounded ==> expected: <true> but was: <false>

No exception, so the request was accepted. The tool just wasn't called, and the message doesn't show what the model answered.

Investigation

10 runs of this test, gpt-5-pro only, with OPENAI_LOG=debug:

  • 10/10 passed
  • all responses completed, no incomplete_details
  • no max_output_tokens sent
  • reasoning: 64–256 tokens

So the answer is not being cut short. Most likely the model sometimes answers without the tool, since we send tool_choice: auto.

Changes

  • Line 197 now prints the answer (got: '$answer'), so the next failure shows the cause.

Next step

If confirmed, force the call with tool_choice: required in this test. That needs tool_choice support in LlmOptions / the Responses adapter.

Side note: the catalog sets max_tokens: 16384 for gpt-5-pro, but it's not sent in the request.

azanux avatar Oct 15 '26 19:10 azanux

@azanux - can the issue be closed?

igordayen avatar Oct 15 '26 22:10 igordayen

@igordayen wait a little bit , to see If we have the same problem again

azanux avatar Oct 16 '26 01:10 azanux

@igordayen Ran the OpenAiCatalogIT tool case 10 times on gpt-5-pro with current main: 10/10 passed, tool called every time. The failure has not come back, so we can close this. If it returns, the test now prints the answer (#2154).

azanux avatar Oct 26 '26 18:10 azanux

Closing per recommendation. thanks

igordayen avatar Oct 26 '26 21:10 igordayen