mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #836] [MERGED] Request identity encoding for provider responses #4799
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#4799
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/836
Author: @Xelvanis
Created: 5/14/2026
Status: ✅ Merged
Merged: 5/14/2026
Merged by: @Xelvanis
Base:
main← Head:fix/provider-stream-identity-encoding📝 Commits (3)
b69bd23fix(provider): request identity encoding for LLM streams816e3a2fix(provider): request identity encoding for provider JSON607aederefactor(provider): share identity encoding header helper📊 Changes
4 files changed (+82 additions, -1 deletions)
View changed files
📝
packages/server/src/services/llm/base-provider.ts(+2 -1)📝
packages/server/src/utils/security.ts(+11 -0)📝
packages/server/test/openai-provider-reasoning.test.ts(+44 -0)📝
packages/server/test/security-utils.test.ts(+25 -0)📄 Description
Linked issue
Follow-up to #825 and #834. No new GitHub issue exists yet for the Venice-specific follow-up report.
Why this change
Accept-Encoding: identity, but returns zstd-compressed bytes when broader encodings are advertised.What changed
Accept-Encodingtoidentity.Accept-Encodingtoidentity.accept-encodingheaders are preserved.chatComplete()and opted-insafeFetchprovider JSON requests.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; passed.pnpm check; passed with the existing NodeDEP0190warning during the server build.Docs and release impact
No docs or release metadata changes expected; this is a narrow server/provider request negotiation fix.
UI evidence (if applicable)
N/A. Server/provider request handling only.
Summary by CodeRabbit
Improvements
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.