The assistant requires Top P or allows unsupported temperature settings for the GPT-5.1 and GPT-5.2 model groups.
Error log:
Error invoking model response: Unsupported parameter: 'top_p' is not supported with this model.
This means that the assistant can’t use GPT-5 family models because it sends parameters that are not supported.
Model documentation:
https://docs.aimlapi.com/api-references/text-models-llm/openai/gpt-5-1-c...
https://docs.aimlapi.com/api-references/text-models-llm/openai/gpt-5.2-c...
Issue fork ai_provider_openai-3575626
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
marcus_johansson commentedThanks for finding this issue - I'm moving this to OpenAI module and raising to major.
Comment #4
marcus_johansson commentedThat documentation seems to be wrong, it says temperature and top_p is optional, but setting them will fail 5.x models - top_p doesn't exist and temperature always should default to 1. Also frequency_penalty and presence_penalty are not allowed here.
I have removed those settings from 5.x models completely. Also for the oX models since it affects them as well.
A MR is there to test.
Comment #5
abhisekmazumdarReviewing the issue
Comment #6
abhisekmazumdarAll good I was able to use 5.x models and oX models + Code review.
Comment #7
arianraeesi commentedComment #8
marcus_johansson commentedThank you for finding the bug and reviewing the bug, getting merged
Comment #9
marcus_johansson commentedComment #12
arianraeesi commented