mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #672] [MERGED] Fix OpenAI ChatGPT chatComplete SSE parsing #4722
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#4722
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/672
Author: @cha1latte
Created: 5/11/2026
Status: ✅ Merged
Merged: 5/11/2026
Merged by: @cha1latte
Base:
main← Head:fix/openai-chatgpt-chatcomplete-sse📝 Commits (1)
550f3faFix OpenAI ChatGPT chatComplete SSE parsing📊 Changes
2 files changed (+51 additions, -2 deletions)
View changed files
📝
packages/server/src/services/llm/providers/openai.provider.ts(+3 -2)📝
packages/server/test/openai-provider-reasoning.test.ts(+48 -0)📄 Description
Linked issue
Follow-up to #670 after review feedback on the merged OpenAI (ChatGPT) provider fix.
Why this change
chatCompleteResponses()path still used the caller'sstream:falsepreference to choose the non-streaming JSON parser.chatComplete()calls able to receive SSE from Codex but parse it as JSON.What changed
chatCompleteResponses()to parse OpenAI (ChatGPT) Responses results as SSE even when the caller requested non-streaming output.!isOpenAIChatGPTguard around the Responses OpenRouter provider override.chatComplete(... stream:false ...)decodes the full text.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm exec tsx --import ./test/setup-env.ts --test --test-name-pattern "OpenAI ChatGPT chatComplete decodes SSE when caller requests non-streaming" test/openai-provider-reasoning.test.ts.pnpm check.git diff --check.rg -n "console\\." packages/server/src/services/llm/providers/openai.provider.tsfound no console statements.Docs and release impact
No docs, schema, dependency, version, or release metadata changes.
UI evidence (if applicable)
N/A - backend provider response parsing fix.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.