Closed (fixed)
Project:
OpenAI Provider
Version:
1.2.0
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Jan 2026 at 07:26 UTC
Updated:
8 Mar 2026 at 16:55 UTC
Jump to comment: Most recent
Comments
Comment #2
marcus_johansson commentedComment #3
marcus_johansson commentedComment #5
akhil babuComment #7
akhil babuFor 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.
Comment #8
breidert commentedI 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.
Comment #9
marcus_johansson commentedThis 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.
Comment #10
marcus_johansson commentedComment #12
arianraeesi commented