mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #825] [MERGED] Decode compressed provider responses #4793
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#4793
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/825
Author: @Xelvanis
Created: 5/14/2026
Status: ✅ Merged
Merged: 5/14/2026
Merged by: @Xelvanis
Base:
main← Head:fix/provider-compressed-response-decoding📝 Commits (3)
221c914fix(provider): decode compressed buffered responses072844bMake compressed response decoding opt-in in safeFetch2776d77fix(provider): buffer compressed JSON response paths📊 Changes
9 files changed (+284 additions, -24 deletions)
View changed files
📝
packages/server/src/routes/connections.routes.ts(+9 -0)📝
packages/server/src/services/llm/base-provider.ts(+5 -2)📝
packages/server/src/services/llm/openai-chatgpt-auth.ts(+2 -0)📝
packages/server/src/services/llm/providers/anthropic.provider.ts(+1 -0)📝
packages/server/src/utils/security.ts(+68 -20)📝
packages/server/test/anthropic-provider-opus47.test.ts(+45 -0)📝
packages/server/test/embedding-response.test.ts(+36 -0)📝
packages/server/test/openai-provider-reasoning.test.ts(+44 -1)📝
packages/server/test/security-utils.test.ts(+74 -1)📄 Description
Linked issue
Follow-up to #781 and #784. No new GitHub issue exists yet for the Venice-specific report.
Why this change
What changed
content-encodingandcontent-lengthheaders after normalization.safeFetchconsumers and streaming/SSE responses unchanged.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm --filter @marinara-engine/server exec tsx --import ./test/setup-env.ts --test test/security-utils.test.ts test/openai-provider-reasoning.test.ts test/connections-horde-routes.test.ts test/embedding-response.test.ts test/anthropic-provider-opus47.test.ts; passed.pnpm check; passed./modelsconfirmed Venice/Cloudflare can returncontent-encoding: zstdwhen the client advertises zstd support.Docs and release impact
No docs or release metadata changes expected; this is a narrow server/provider response decoding fix.
UI evidence (if applicable)
N/A. Server/provider response decoding only.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.