[GH-ISSUE #8387] Custom endpoints: reasoning effort ignored, turns stuck on "Generating", rate limiter breaks after a clock change #8335

Closed
opened 2026-11-07 16:42:18 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @kolacheee on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8387

Originally assigned to: @kolacheee on GitHub.

Three problems seen while playing through a custom OpenAI-compatible gateway:

  1. Reasoning effort is ignored. A generic custom connection only sends reasoning_effort for OpenAI reasoning model ids, so Claude, Gemini, DeepSeek, Qwen and similar models behind a gateway (LiteLLM, new-api, one-api) run without the level the user picked.
  2. Turns can hang on "Generating..." with no way out. A turn sent right after Stop gets a 409 and is lost; a run aborted elsewhere while its stream is open never sends done or error; a quiet stream never recovers; a game turn whose background recovery produces no Game Master message shows nothing; and Retry in game mode asks the GM to continue without the player's typed turn when the server never saved it.
  3. Rate limiting locks everyone out after the system clock moves back (NTP correction, a resumed VM): buckets count down to a reset hours away, so every request gets 429 with a huge Retry-After.
Originally created by @kolacheee on GitHub (Oct 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8387 Originally assigned to: @kolacheee on GitHub. Three problems seen while playing through a custom OpenAI-compatible gateway: 1. **Reasoning effort is ignored.** A generic custom connection only sends `reasoning_effort` for OpenAI reasoning model ids, so Claude, Gemini, DeepSeek, Qwen and similar models behind a gateway (LiteLLM, new-api, one-api) run without the level the user picked. 2. **Turns can hang on "Generating..." with no way out.** A turn sent right after Stop gets a 409 and is lost; a run aborted elsewhere while its stream is open never sends done or error; a quiet stream never recovers; a game turn whose background recovery produces no Game Master message shows nothing; and Retry in game mode asks the GM to continue without the player's typed turn when the server never saved it. 3. **Rate limiting locks everyone out after the system clock moves back** (NTP correction, a resumed VM): buckets count down to a reset hours away, so every request gets 429 with a huge Retry-After.
bsakaguchi 2026-11-07 16:42:18 +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#8335
No description provided.