mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #427] [MERGED] Keep custom OpenAI-compatible requests conservative #4615
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#4615
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/427
Author: @TheLonelyDevil9
Created: 5/5/2026
Status: ✅ Merged
Merged: 5/5/2026
Merged by: @TheLonelyDevil9
Base:
main← Head:codex/fix-venice-glm-reasoning📝 Commits (1)
e675d8fKeep custom OpenAI-compatible requests conservative📊 Changes
5 files changed (+174 additions, -19 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/server/src/services/llm/provider-registry.ts(+17 -2)📝
packages/server/src/services/llm/providers/local-sidecar.provider.ts(+1 -1)📝
packages/server/src/services/llm/providers/openai.provider.ts(+75 -12)📝
packages/server/test/openai-provider-reasoning.test.ts(+80 -4)📄 Description
Summary
customOpenAI-compatible connections as conservative generic endpoints instead of applying provider/model-name heuristics.enable_thinking,reasoning_effort,max_completion_tokens, GPT-5 verbosity, OpenRouter routing metadata, or forced GPT-5.5 streaming just because a fetched model ID matches a known naming pattern.Context
A user reported that Venice.ai's OpenAI-compatible API accepts model fetching and connection tests, but test messages fail with
Unrecognized key(s) in object: 'enable_thinking'when selectingzai-org-glm-5-1. The root issue is broader than GLM: generic custom OpenAI-compatible endpoints can be strict, so Marinara should not infer nonstandard provider fields from model names or endpoint-looking substrings unless the user selected a first-class provider route.No linked issue exists yet. One should be opened before this PR is submitted, per CONTRIBUTING.md.
Validation
https://api.venice.ai/api/v1andzai-org-glm-5-1can send a test message.enable_thinkingwhen reasoning effort is configured.Automated checks run locally:
pnpm --filter @marinara-engine/server test -- openai-provider-reasoning.test.tspnpm --filter @marinara-engine/server lintpnpm checkNote: local commands emitted the repo engine warning because this shell is on Node v22.22.0 while package.json wants Node >=24 <26.
Summary by CodeRabbit
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.