Skip to content

Conversation

@jeancodogno
Copy link

This PR fixes an issue where OpenAIResponses overwrote the entire text configuration block when structured output was enabled. Because the provider used array_merge(), any existing nested fields,such as text->verbosity, were lost during the merge process.

What was happening

Enabling structured output injects a text.format block.
However, the merge operation replaced the full text array, causing configurations like:

'text' => [
    'verbosity' => 'low',
]

to be discarded.

What this PR changes

  • Replaces array_merge() with array_replace_recursive()

Related Issue

#407

@ilvalerione ilvalerione merged commit 75797e1 into neuron-core:2.x Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants