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...

Command icon 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

siva01 created an issue. See original summary.

marcus_johansson’s picture

Project: AI (Artificial Intelligence) » OpenAI Provider
Version: 1.3.0-rc1 » 1.3.x-dev
Component: AI Assistants API » Code
Priority: Normal » Major

Thanks for finding this issue - I'm moving this to OpenAI module and raising to major.

marcus_johansson’s picture

Status: Active » Needs review

That 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.

abhisekmazumdar’s picture

Assigned: siva01 » abhisekmazumdar

Reviewing the issue

abhisekmazumdar’s picture

Assigned: abhisekmazumdar » Unassigned
Status: Needs review » Reviewed & tested by the community

All good I was able to use 5.x models and oX models + Code review.

arianraeesi’s picture

marcus_johansson’s picture

Thank you for finding the bug and reviewing the bug, getting merged

marcus_johansson’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

arianraeesi’s picture

Issue tags: -AI Product Development

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.