mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #670] [MERGED] Fix OpenAI ChatGPT request shape #4721
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#4721
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/670
Author: @cha1latte
Created: 5/11/2026
Status: ✅ Merged
Merged: 5/11/2026
Merged by: @cha1latte
Base:
main← Head:fix/openai-chatgpt-request-shape📝 Commits (1)
2d12baeFix OpenAI ChatGPT request shape📊 Changes
2 files changed (+62 additions, -14 deletions)
View changed files
📝
packages/server/src/services/llm/providers/openai.provider.ts(+31 -14)📝
packages/server/test/openai-provider-reasoning.test.ts(+31 -0)📄 Description
Linked issue
No linked issue yet; this came from a local provider bug report and one should be opened before submission if the team wants issue tracking.
Why this change
{"detail":"Instructions are required"}and{"detail":"Unsupported parameter: max_output_tokens"}.What changed
openai-chatgptprovider so Responses requests always send the Codex-compatible shape:stream: true,store: false,instructions,model, andinput.max_output_tokens,include, sampling parameters, reasoning options, text options, tools, and custom parameters.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
{"ok":true,"text":"ok"}.pnpm exec tsx --import ./test/setup-env.ts --test --test-name-pattern "OpenAI ChatGPT responses requests omit unsupported Codex parameters" 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 request-shape fix.
Summary by CodeRabbit
Refactor
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.