Problem/Motivation

When trying to use OpenAI GPT 5.6 Luna in AI Agent Explorer, I get the following error in the Drupal log. Is this a bug? If so, would it be filed under ai, ai_agent, or ai_provider_openai?
Error invoking model response: Function tools with reasoning_effort are not supported for gpt-5.6-luna in /v1/chat/completions. To use function tools, use /v1/responses or set reasoning_effort to 'none'.

Steps to reproduce

Proposed resolution

For 1.3.x this should be solved, since we use responses

For 1.2.x we need to set reasoning effort to none.

Remaining tasks

User interface changes

API changes

Data model changes

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

marcus_johansson created an issue. See original summary.

marcus_johansson’s picture

Assigned: marcus_johansson » Unassigned
Status: Active » Needs review
ahmad khader’s picture

Assigned: Unassigned » ahmad khader
ahmad khader’s picture

MR looks good to me and straightforward, i tried it manually; it worked, and I also tried to see if we need to add more models, but everything i tried worked. alot of tables look outdated, and it's hard to find reasoning_effort capability table https://community.openai.com/t/request-for-compatibility-matrix-reasonin...

ahmad khader’s picture

Status: Needs review » Reviewed & tested by the community
agoradesign’s picture

+1

marcus_johansson’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, merging this.

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.

marcus_johansson’s picture

Assigned: ahmad khader » Unassigned