[PR #5846] [MERGED] feat: add GPT-6 Astra support #6965

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

📋 Pull Request Information

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

Base: staging ← Head: feat/5845-gpt-6-astra


📝 Commits (3)

  • f95cfff docs: track GPT-6 Astra support (#5845)
  • d873e46 feat: support GPT-6 Astra requests and reasoning (#5845)
  • c890149 docs: clarify Astra Responses routing after review

📊 Changes

6 files changed (+300 additions, -16 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 packages/server/src/routes/connections.routes.ts (+2 -0)
📝 packages/server/src/routes/generate.routes.ts (+4 -1)
📝 packages/server/src/services/llm/providers/openai.provider.ts (+38 -14)
📝 packages/shared/src/constants/model-lists.ts (+9 -1)
➕ scripts/regressions/gpt-6-astra.regression.ts (+245 -0)

📄 Description

Linked issue

Closes #5845

Why this change

Selecting GPT-6 Astra currently misses its model limits and reasoning capabilities and sends native OpenAI requests through Chat Completions, which Astra does not support for tool calling.

What changed

  • Add gpt-6-astra to the OpenAI catalog with its documented 1,050,000-token context and 128,000-token output limit. Existing connection defaults remain in place.
  • Route native Astra chat and agent requests through Responses. Support Low through Maximum (max), use low for a saved reasoning-off setting, and preserve reasoning-context and verbosity controls.
  • Remove unsupported sampling and logprob parameters, including logprob output requested through custom include. Custom gateways retain their existing Chat Completions routing and explicit parameter overrides.
  • Keep connection-test endpoint descriptions and generation debug output consistent with Astra routing and sampling rules.
  • Add request-level regression coverage for both generation entrypoints, streamed and non-streamed responses, images, reasoning summaries, tool calls and replay, disabled parameter controls, custom gateways, and an older-model negative control.

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

  • Manually verify Astra selection and a streamed chat using an OpenAI connection with model access.
  • Manually verify an agent tool call and reasoning settings from Low through Maximum.
  • Passed locally: pnpm check, pnpm regression:prompt, pnpm version:check, and the gpt-6-astra and provider-compat regression files through scripts/run-regressions.mjs.
  • The Astra regression captures 36 requests against a local HTTP fixture. This proves request/response compatibility with the documented contract; it does not prove live model availability or model output quality.
  • No browser connection or OpenAI API key was available for a manual browser/live-inference check. Container validation runs in required CI.

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)

Adds an Unreleased changelog entry. No version bump or translated documentation changes.

UI evidence (if applicable)

Uses the existing model picker; no layout changes.

Summary by CodeRabbit

  • New Features

    • Added support for OpenAI’s GPT-6 Astra models.
    • GPT-6 Astra supports extended context, high output limits, configurable reasoning levels, and maximum reasoning effort.
    • Chats and tool-using agents automatically use the Responses API.
    • Improved handling for reasoning, verbosity, and non-sampling model requests.
  • Tests

    • Added coverage for streaming, tool calls, reasoning replay, custom gateways, and compatibility with older OpenAI models.

🔄 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/5846 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/4/2026 **Status:** ✅ Merged **Merged:** 9/4/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/5845-gpt-6-astra` --- ### 📝 Commits (3) - [`f95cfff`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f95cfff73f60f31062a47d7f75d110f674c733c6) docs: track GPT-6 Astra support (#5845) - [`d873e46`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d873e46f53a3d4096e897e167cbd8ee24f0a9fd0) feat: support GPT-6 Astra requests and reasoning (#5845) - [`c890149`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c8901492b9b629d124b165818e0820582ff8a864) docs: clarify Astra Responses routing after review ### 📊 Changes **6 files changed** (+300 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `packages/server/src/routes/connections.routes.ts` (+2 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+4 -1) 📝 `packages/server/src/services/llm/providers/openai.provider.ts` (+38 -14) 📝 `packages/shared/src/constants/model-lists.ts` (+9 -1) ➕ `scripts/regressions/gpt-6-astra.regression.ts` (+245 -0) </details> ### 📄 Description ## Linked issue Closes #5845 ## Why this change Selecting GPT-6 Astra currently misses its model limits and reasoning capabilities and sends native OpenAI requests through Chat Completions, which Astra does not support for tool calling. ## What changed - Add `gpt-6-astra` to the OpenAI catalog with its documented 1,050,000-token context and 128,000-token output limit. Existing connection defaults remain in place. - Route native Astra chat and agent requests through Responses. Support Low through Maximum (`max`), use `low` for a saved reasoning-off setting, and preserve reasoning-context and verbosity controls. - Remove unsupported sampling and logprob parameters, including logprob output requested through custom `include`. Custom gateways retain their existing Chat Completions routing and explicit parameter overrides. - Keep connection-test endpoint descriptions and generation debug output consistent with Astra routing and sampling rules. - Add request-level regression coverage for both generation entrypoints, streamed and non-streamed responses, images, reasoning summaries, tool calls and replay, disabled parameter controls, custom gateways, and an older-model negative control. ## 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 - Manually verify Astra selection and a streamed chat using an OpenAI connection with model access. - Manually verify an agent tool call and reasoning settings from Low through Maximum. - Passed locally: `pnpm check`, `pnpm regression:prompt`, `pnpm version:check`, and the `gpt-6-astra` and `provider-compat` regression files through `scripts/run-regressions.mjs`. - The Astra regression captures 36 requests against a local HTTP fixture. This proves request/response compatibility with the documented contract; it does not prove live model availability or model output quality. - No browser connection or OpenAI API key was available for a manual browser/live-inference check. Container validation runs in required CI. ## 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) Adds an Unreleased changelog entry. No version bump or translated documentation changes. ## UI evidence (if applicable) Uses the existing model picker; no layout changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added support for OpenAI’s GPT-6 Astra models. - GPT-6 Astra supports extended context, high output limits, configurable reasoning levels, and maximum reasoning effort. - Chats and tool-using agents automatically use the Responses API. - Improved handling for reasoning, verbosity, and non-sampling model requests. - **Tests** - Added coverage for streaming, tool calls, reasoning replay, custom gateways, and compatibility with older OpenAI models. <!-- 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:15:17 +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#6965
No description provided.