mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #648] [MERGED] Fix GPT-5.5 empty responses on custom providers #4713
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4713
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/648
Author: @kolacheee
Created: 5/10/2026
Status: ✅ Merged
Merged: 5/10/2026
Merged by: @SpicyMarinara
Base:
main← Head:claude/intelligent-taussig-b84428📝 Commits (2)
ca06324Fix GPT-5.5 empty responses on custom providers95ec7a8Merge branch 'main' into claude/intelligent-taussig-b84428📊 Changes
1 file changed (+5 additions, -1 deletions)
View changed files
📝
packages/server/src/services/llm/providers/openai.provider.ts(+5 -1)📄 Description
Linked issue
Closes #644
Why this change
PR #643 fixed silent empty responses for GPT-5.4 but not GPT-5.5. Users report that GPT-5.5 still returns blank responses on both custom (reverse-proxy) providers and the official OpenAI provider. The root causes are:
/chat/completions.type: "text"instead of"output_text", and streaming deltas asresponse.text.deltainstead ofresponse.output_text.delta— both silently ignored by the existing extraction logic.status: "failed"with HTTP 200, which was never checked.What changed
Routing fix (
useResponsesAPI)isGenericCustomProvider()runs beforeisGpt55Model()— custom providers always use Chat Completions now, even for GPT-5.5.Non-streaming status validation (
chatResponses,chatCompleteResponses)status === "failed"check that throws with the error message from the response.status === "incomplete"warning with the reason.Resilient content extraction (
extractResponsesText)part.type === "text"in addition to"output_text".item.contentwhen structured content array is absent.Streaming event coverage (
chatResponses,chatCompleteResponses)response.text.deltaas an alternative toresponse.output_text.delta.Diagnostic logging
output_texttype, and output item types.Validation
pnpm checkpasses[OpenAI Responses]warnings — they now show what the API actually returnedManual verification notes
[OpenAI Responses]log lines are critical if the fix still doesn't resolve the issue — they reveal the exact structure GPT-5.5 returns (status, output_text type, output item types) so the extraction can be further tuned.provider.chat()which exercises thechatResponsesnon-streaming path with the new status checks.chatResponsesstreaming path with the newresponse.text.deltaevent.Docs and release impact
No docs or release metadata changes needed. This is a bug fix for existing OpenAI provider behavior.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.