Problem/Motivation

I wanted to use gpt-5 models for the "Chat with Complex JSON" as a default setting, but I don't see them there.
I can see all the different models including 3 and 5 versions for the "Chat" option. I can also select any models when choosing the model for an AI automator field configuration. See the screenshots.

Steps to reproduce

Install 1.2.0 and try to select GPT-5 models for "Chat with Complex JSON" in default settings at /admin/config/ai/settings

Proposed resolution

All models should be visible.

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

merilainen created an issue. See original summary.

marcus_johansson’s picture

Priority: Normal » Major
marcus_johansson’s picture

akhil babu made their first commit to this issue’s fork.

akhil babu’s picture

Assigned: Unassigned » akhil babu

akhil babu’s picture

Assigned: akhil babu » Unassigned
Status: Active » Needs review

For chat with complex JSON, the available models are currently filtered based on their model names. I have added the GPT-5 pattern to this list. However, not all GPT-5 models support chat.
So I was wondering if we should keep this filtering at all, or display all models selectable for the chat operation type in the chat with complex JSON operation type as well. Then it becomes the responsibility of the user to select the correct model.

breidert’s picture

Status: Needs review » Needs work

I am not sure we are doing the correct thing here. Newer models (like gpt-5) do not yet appear in the documentation about structured output from OpenAI.

However, there are several ways how JSON output can be requested in the API, and I am not sure what the corresponding functionality in Drupal should do.

I suggest we need information from one of the AI module maintainers who can better decide if simply allowing gpt-5 to be selected for OpenAI is good enough.

I also suggest providing full testing instructions how to test if gpt-5 modules actually do return valid JSON.

marcus_johansson’s picture

Status: Needs work » Reviewed & tested by the community

This should work well, its documented under the models that they do support structured output, see:

* https://platform.openai.com/docs/models/gpt-5.2
* https://platform.openai.com/docs/models/gpt-5.1

These will be usable for json output as well.

Add the issue #3572299: Add checks for Chat with Tools and Chat with Structured Content while reviewing this.

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.