[PR #6868] [MERGED] feat(openai): add GPT-6.1 Sol and fix GPT-6 parameter controls #7362

Closed
opened 2026-10-23 04:19:01 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6868
Author: @SpicyMarinara
Created: 9/29/2026
Status: ✅ Merged
Merged: 9/29/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/gpt-6.1-sol


📝 Commits (2)

  • 3f0b493 feat(openai): add GPT-6.1 Sol and fix GPT-6 parameter controls
  • aa8a2c1 docs(openai): clarify GPT-6 sampling rule for omitted effort

📊 Changes

8 files changed (+74 additions, -23 deletions)

View changed files

📝 CHANGELOG.md (+4 -0)
📝 e2e/gpt6-models.e2e.ts (+2 -2)
📝 packages/server/src/routes/generate.routes.ts (+2 -2)
📝 packages/server/src/services/llm/providers/openai.provider.ts (+12 -9)
📝 packages/shared/src/constants/generation-parameter-relevance.ts (+10 -5)
📝 packages/shared/src/constants/model-lists.ts (+10 -1)
📝 scripts/regressions/generation-parameter-relevance.regression.ts (+13 -1)
📝 scripts/regressions/gpt-6-astra.regression.ts (+21 -3)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #6867

Why this change

  • OpenAI released GPT-6.1 Sol (gpt-6.1-sol), and Marinara should offer it as an OpenAI model. Its model page lists a 1,050,000-token context, 128,000 max output, and reasoning effort low/medium (default)/high/xhigh/max. It explicitly does not support none or minimal.
  • While wiring it in, I found that the parameter panel hid Reasoning Effort and Verbosity for every GPT-6 model on OpenAI connections, and showed temperature, top-p and penalties that the server strips. GPT-6.1 Sol would have inherited this, leaving no way to pick its effort. The existing e2e/gpt6-models.e2e.ts has been failing on staging since #6776 because of it (it can't find the Reasoning Effort control). The browser e2e suite is skipped on PR CI, which is how it went unnoticed.

What changed

  • Model list: a gpt-6.1-sol entry (1,050,000 context, 128,000 output). isOpenAIGpt6Model now matches gpt-6.1-sol, which gives it the existing GPT-6 routing: Responses API (except on OpenRouter), xhigh and max effort, reasoning context, and verbosity.
  • New isOpenAIGpt6AlwaysReasoningModel (GPT-6 Astra and GPT-6.1 Sol): GPT-6 models that can't turn reasoning off. It replaces the Astra-only checks in the OpenAI provider and the generate route's temperature log line. An explicit Off is sent as effort low, and sampling parameters are never sent, because GPT-6 only samples with effort none. Astra's behavior is unchanged.
  • Panel rules (generation-parameter-relevance.ts): GPT-6 counts as an OpenAI reasoning model and shows verbosity. Sampling is hidden for Astra and 6.1 Sol, and for Sol/Luna while effort is active. Penalties are hidden where GPT-6 uses the Responses API.
  • Regressions:
    • generation-parameter-relevance: the GPT-6 models are added to its OpenAI truth table, which checks the panel against the real request.
    • gpt-6-astra: 6.1 Sol catalog, predicate and effort checks. 6.1 Sol also runs through the full Responses request loop with Astra's expectations.
    • e2e/gpt6-models: 6.1 Sol is added, and the stale Maximum button name becomes max, the provider's value label since #6776.
  • Two Unreleased changelog entries.

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

Automated checks run locally on aa8a2c1e4:

  • generation-parameter-relevance regression:
    • It failed before the panel fix. All four GPT-6 models showed temperature, top-p and penalties, and hid effort and verbosity.
    • It passes after the fix.
  • gpt-6-astra regression:
    • It passes.
    • With the provider change reverted, it fails because 6.1 Sol sends effort: "none".
  • The 20 other regressions that exercise the OpenAI provider, model lists or panel rules pass. These include provider-compat, responses-tool-reasoning, responses-rejected-reasoning, past-reasoning-history, provider-caching and claude-opus55.
  • e2e/gpt6-models.e2e.ts: 9/9 on desktop Chromium, mobile Chromium and mobile WebKit. This covers gpt-6-sol, gpt-6-luna and gpt-6.1-sol. The unchanged gpt-6-sol case fails on staging without this PR.
  • Local CodeRabbit review (--committed against the staging merge base): one trivial finding about the isNoTemperatureModel comment. Fixed in aa8a2c1e4.
  • The full pnpm check result is reported in a follow-up comment.

Manual verification notes

  • Manually verify with a real OpenAI key:
    • Select gpt-6.1-sol on an OpenAI connection and send a Roleplay and a Conversation message at the default effort and at max. Both should succeed.
    • Set effort to Off and confirm the request succeeds. It is sent as low, and no 400 about none should appear.
  • Manually verify Chat Settings → Advanced Parameters for a GPT-6 connection:
    • Reasoning Effort (Off/low/medium/high/xhigh/max) and Verbosity appear.
    • Temperature and Top P appear only for GPT-6 Sol/Luna with effort Off.
  • Manually verify GPT-6 Astra still behaves as before.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

Only CHANGELOG.md changes. No user-facing docs list individual OpenAI models, and there is no new UI copy.

UI evidence (if applicable)

Playwright (e2e/gpt6-models.e2e.ts) selects gpt-6.1-sol from the OpenAI model picker (listed as 1.1M context and 128K output). The Reasoning Effort control shows Off · low · medium · high · xhigh · max, and Off and max persist across a reload.

Summary by CodeRabbit

  • New Features
    • Added GPT-6.1 Sol, with a 1.05M-token context window and a 128K output limit.
    • Reasoning Effort and Verbosity controls are available for GPT-6 models. Sampling controls appear only when supported by the selected model and reasoning settings.
  • Bug Fixes
    • GPT-6 model settings now follow the appropriate rules for reasoning and sampling controls. For GPT-6.1 Sol, reasoning cannot be turned off, and temperature and top-p settings are not sent.

🔄 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/6868 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/29/2026 **Status:** ✅ Merged **Merged:** 9/29/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/gpt-6.1-sol` --- ### 📝 Commits (2) - [`3f0b493`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3f0b493cfcacc7a68002b0f2ce54b2c4a231161b) feat(openai): add GPT-6.1 Sol and fix GPT-6 parameter controls - [`aa8a2c1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/aa8a2c1e4915d132823ce14d3d4eab0bfd63d847) docs(openai): clarify GPT-6 sampling rule for omitted effort ### 📊 Changes **8 files changed** (+74 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+4 -0) 📝 `e2e/gpt6-models.e2e.ts` (+2 -2) 📝 `packages/server/src/routes/generate.routes.ts` (+2 -2) 📝 `packages/server/src/services/llm/providers/openai.provider.ts` (+12 -9) 📝 `packages/shared/src/constants/generation-parameter-relevance.ts` (+10 -5) 📝 `packages/shared/src/constants/model-lists.ts` (+10 -1) 📝 `scripts/regressions/generation-parameter-relevance.regression.ts` (+13 -1) 📝 `scripts/regressions/gpt-6-astra.regression.ts` (+21 -3) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #6867 ## Why this change - OpenAI released **GPT-6.1 Sol** (`gpt-6.1-sol`), and Marinara should offer it as an OpenAI model. Its [model page](https://developers.openai.com/api/docs/models/gpt-6.1-sol) lists a 1,050,000-token context, 128,000 max output, and reasoning effort `low`/`medium` (default)/`high`/`xhigh`/`max`. It explicitly does **not** support `none` or `minimal`. - While wiring it in, I found that the parameter panel hid **Reasoning Effort and Verbosity for every GPT-6 model** on OpenAI connections, and showed temperature, top-p and penalties that the server strips. GPT-6.1 Sol would have inherited this, leaving no way to pick its effort. The existing `e2e/gpt6-models.e2e.ts` has been failing on staging since #6776 because of it (it can't find the Reasoning Effort control). The browser e2e suite is skipped on PR CI, which is how it went unnoticed. ## What changed - **Model list:** a `gpt-6.1-sol` entry (1,050,000 context, 128,000 output). `isOpenAIGpt6Model` now matches `gpt-6.1-sol`, which gives it the existing GPT-6 routing: Responses API (except on OpenRouter), `xhigh` and `max` effort, reasoning context, and verbosity. - **New `isOpenAIGpt6AlwaysReasoningModel`** (GPT-6 Astra and GPT-6.1 Sol): GPT-6 models that can't turn reasoning off. It replaces the Astra-only checks in the OpenAI provider and the generate route's temperature log line. An explicit Off is sent as effort `low`, and sampling parameters are never sent, because GPT-6 only samples with effort `none`. Astra's behavior is unchanged. - **Panel rules** (`generation-parameter-relevance.ts`): GPT-6 counts as an OpenAI reasoning model and shows verbosity. Sampling is hidden for Astra and 6.1 Sol, and for Sol/Luna while effort is active. Penalties are hidden where GPT-6 uses the Responses API. - **Regressions:** - `generation-parameter-relevance`: the GPT-6 models are added to its OpenAI truth table, which checks the panel against the real request. - `gpt-6-astra`: 6.1 Sol catalog, predicate and effort checks. 6.1 Sol also runs through the full Responses request loop with Astra's expectations. - `e2e/gpt6-models`: 6.1 Sol is added, and the stale `Maximum` button name becomes `max`, the provider's value label since #6776. - Two Unreleased changelog entries. ## 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` Automated checks run locally on `aa8a2c1e4`: - `generation-parameter-relevance` regression: - It failed before the panel fix. All four GPT-6 models showed temperature, top-p and penalties, and hid effort and verbosity. - It passes after the fix. - `gpt-6-astra` regression: - It passes. - With the provider change reverted, it fails because 6.1 Sol sends `effort: "none"`. - The 20 other regressions that exercise the OpenAI provider, model lists or panel rules pass. These include `provider-compat`, `responses-tool-reasoning`, `responses-rejected-reasoning`, `past-reasoning-history`, `provider-caching` and `claude-opus55`. - `e2e/gpt6-models.e2e.ts`: 9/9 on desktop Chromium, mobile Chromium and mobile WebKit. This covers `gpt-6-sol`, `gpt-6-luna` and `gpt-6.1-sol`. The unchanged `gpt-6-sol` case fails on staging without this PR. - Local CodeRabbit review (`--committed` against the staging merge base): one trivial finding about the `isNoTemperatureModel` comment. Fixed in `aa8a2c1e4`. - The full `pnpm check` result is reported in a follow-up comment. ### Manual verification notes - Manually verify with a real OpenAI key: - Select `gpt-6.1-sol` on an OpenAI connection and send a Roleplay and a Conversation message at the default effort and at `max`. Both should succeed. - Set effort to Off and confirm the request succeeds. It is sent as `low`, and no 400 about `none` should appear. - Manually verify Chat Settings → Advanced Parameters for a GPT-6 connection: - Reasoning Effort (Off/low/medium/high/xhigh/max) and Verbosity appear. - Temperature and Top P appear only for GPT-6 Sol/Luna with effort Off. - Manually verify GPT-6 Astra still behaves as before. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) Only `CHANGELOG.md` changes. No user-facing docs list individual OpenAI models, and there is no new UI copy. ## UI evidence (if applicable) Playwright (`e2e/gpt6-models.e2e.ts`) selects `gpt-6.1-sol` from the OpenAI model picker (listed as 1.1M context and 128K output). The Reasoning Effort control shows Off · low · medium · high · xhigh · max, and Off and max persist across a reload. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added GPT-6.1 Sol, with a 1.05M-token context window and a 128K output limit. * Reasoning Effort and Verbosity controls are available for GPT-6 models. Sampling controls appear only when supported by the selected model and reasoning settings. * **Bug Fixes** * GPT-6 model settings now follow the appropriate rules for reasoning and sampling controls. For GPT-6.1 Sol, reasoning cannot be turned off, and temperature and top-p settings are not sent. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:19:01 +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#7362
No description provided.