[PR #718] [MERGED] Fix custom OAI GPT-5.5 regression coverage #4741

Closed
opened 2026-10-22 04:10:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/718
Author: @cha1latte
Created: 5/11/2026
Status: ✅ Merged
Merged: 5/11/2026
Merged by: @cha1latte

Base: main ← Head: fix/issue-714-custom-oai-404


📝 Commits (1)

  • 21d82f0 Fix custom OAI GPT-5.5 regression coverage

📊 Changes

1 file changed (+26 additions, -10 deletions)

View changed files

📝 packages/server/test/openai-provider-reasoning.test.ts (+26 -10)

📄 Description

Linked issue

Closes #714

Why this change

  • v1.5.9 users can hit OpenAI Responses API error 404 when a Custom (OAI-Compatible) connection is tested with a local /v1 backend that supports /chat/completions but not /responses.
  • upstream/main already contains the runtime routing fix from ca06324 so generic Custom providers do not force /responses; this PR updates the stale regression coverage so the fixed behavior is protected.

What changed

  • Updated the OpenAI provider regression helper to capture the outbound request URL as well as the JSON body.
  • Changed the Custom GPT-5.5 regression to assert Custom OAI-compatible requests stay on /chat/completions and do not send a Responses-style payload.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Codex ran pnpm --dir packages/server exec tsx --import ./test/setup-env.ts --test test/openai-provider-reasoning.test.ts; all 29 provider-routing tests passed.
  • Codex ran pnpm check; impeccable context, lint, shared/server/client builds all passed.
  • Edge coverage included: Custom GPT-5.5 asserts /chat/completions; normal OpenAI GPT-5.5 still asserts /responses; Custom non-GPT reasoning model remains on standard Chat Completions behavior.
  • No manual browser verification was needed because this is server provider regression coverage only.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

N/A - no UI changes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/718 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/11/2026 **Status:** ✅ Merged **Merged:** 5/11/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `main` ← **Head:** `fix/issue-714-custom-oai-404` --- ### 📝 Commits (1) - [`21d82f0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/21d82f004a952303d12ecc613b8a74188fec5c15) Fix custom OAI GPT-5.5 regression coverage ### 📊 Changes **1 file changed** (+26 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/test/openai-provider-reasoning.test.ts` (+26 -10) </details> ### 📄 Description ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #714 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - v1.5.9 users can hit `OpenAI Responses API error 404` when a Custom (OAI-Compatible) connection is tested with a local `/v1` backend that supports `/chat/completions` but not `/responses`. - `upstream/main` already contains the runtime routing fix from `ca06324` so generic Custom providers do not force `/responses`; this PR updates the stale regression coverage so the fixed behavior is protected. ## What changed <!-- List the key changes in this PR --> - Updated the OpenAI provider regression helper to capture the outbound request URL as well as the JSON body. - Changed the Custom GPT-5.5 regression to assert Custom OAI-compatible requests stay on `/chat/completions` and do not send a Responses-style payload. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Codex ran `pnpm --dir packages/server exec tsx --import ./test/setup-env.ts --test test/openai-provider-reasoning.test.ts`; all 29 provider-routing tests passed. - Codex ran `pnpm check`; impeccable context, lint, shared/server/client builds all passed. - Edge coverage included: Custom GPT-5.5 asserts `/chat/completions`; normal OpenAI GPT-5.5 still asserts `/responses`; Custom non-GPT reasoning model remains on standard Chat Completions behavior. - No manual browser verification was needed because this is server provider regression coverage only. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) N/A - no UI changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:10:16 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4741
No description provided.