Flaky IT: gpt-5-pro sometimes skips the tool in OpenAiCatalogIT
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, noincomplete_details - no
max_output_tokenssent - 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 - can the issue be closed?
@igordayen wait a little bit , to see If we have the same problem again
@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).
Closing per recommendation. thanks