You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TL;DR:
Tried migrating from gpt-4.1 to gpt-5 in my project ("the simple way" - without lots of research) and some requests work. However, I'm still seeing errors on structured outputs (missing required fields in the model's response) and tool calling (specifically an HTTP 400 error about duplicate item IDs). Couldn't find clear migration guidance, am I missing something?
Hey guys!
I'm using the latest version: v0.86.0.
I tried switching from gpt-4.1 to gpt-5 in my project but encountered some weird errors. I checked here and in the docs for any required migration steps, but didn’t find anything consistent. While reading OpenAI’s documentation, I noticed there are new parameters such as:
"reasoning": {
"effort": "minimal"
}
and
"text": {
"verbosity": "low"
}
I've added those to some text generations like:
$response = Prism::text()
->using(Provider::OpenAI, 'gpt-5-mini')
->withProviderOptions(['text' => ['verbosity' => 'low'], 'reasoning' => ['effort' => 'minimal']])
->withSystemPrompt($prompt)
->withPrompt('Write a fortune cookie for the user.')
->asText();
This approach works for simple requests, but for more complex ones I’m still running into issues—specifically, missing required fields in structured output requests and the following errors when using tool calling:
error: Sending to model (gpt-5-mini) failed: HTTP request returned status code 400: { "error": { "message": "Duplicate item found with id rs_68ab99c342588195aec2898e8abcb9fe0ac6252a1b090d1b. Remove (truncated...)
and
[previous exception] [object] (JsonException(code: 3): Control character error, possibly incorrectly encoded at /Users/grpaiva/Documents/projects/skilldeck/vendor/prism-php/prism/src/ValueObjects/ToolCall.php:35)
[stacktrace]
Is GPT-5 fully supported already? Are there additional steps required before migrating?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
TL;DR:
Tried migrating from
gpt-4.1
togpt-5
in my project ("the simple way" - without lots of research) and some requests work. However, I'm still seeing errors on structured outputs (missing required fields in the model's response) and tool calling (specifically an HTTP 400 error about duplicate item IDs). Couldn't find clear migration guidance, am I missing something?Hey guys!
I'm using the latest version:
v0.86.0
.I tried switching from
gpt-4.1
togpt-5
in my project but encountered some weird errors. I checked here and in the docs for any required migration steps, but didn’t find anything consistent. While reading OpenAI’s documentation, I noticed there are new parameters such as:and
I've added those to some text generations like:
This approach works for simple requests, but for more complex ones I’m still running into issues—specifically, missing required fields in structured output requests and the following errors when using tool calling:
and
Is GPT-5 fully supported already? Are there additional steps required before migrating?
Beta Was this translation helpful? Give feedback.
All reactions