[GH-ISSUE #496] [Issue]: Game Mode setup does not work cleanly on LM Studio local connections using Custom connection type #227

Closed
opened 2026-10-20 17:26:32 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @smurfboyyessir on GitHub (May 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/496

Summary

When trying to start a Game using LM Studio connection, the game startup gets stuck and does not move forward.

Expected behavior

The Game should start and work normally

Actual behavior

The Game gets stuck and this error log appears in the Marinara server terminal window:

{"level":50,"time":1778055939826,"pid":11980,"reqId":"req-tz","err":{"type":"Error","message":"OpenAI API error 400: 'response_format.type' must be 'json_schema' or 'text'","stack":"Error: OpenAI API error 400: 'response_format.type' must be 'json_schema' or 'text'\n at OpenAIProvider.chatComplete (file:///F:/fall/AI_NEW/MarinaraEngine/packages/server/dist/services/llm/providers/openai.provider.js:749:19)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async Object.<anonymous> (file:///F:/fall/AI_NEW/MarinaraEngine/packages/server/dist/routes/game.routes.js:4675:24)"},"msg":"OpenAI API error 400: 'response_format.type' must be 'json_schema' or 'text'"}"

It happens when you click the Start Game button, after the initial generation has finished, but before moving to the background.

Steps to reproduce

  1. Run LM Studio locally
  2. Set up connection to it via Custom (OAI-compatible) connection
  3. Try to start a game. Watch debug logs. Error will be thrown shortly after hitting "Start game" button.

Environment

  • Marinara Engine version: Release: v1.5.8 Build: 12b3ff8
  • Install type: installer
  • OS + version: Windows 11
  • Browser or app shell: Chrome

Logs, screenshots, or video

Image

Additional context

Relates to this open issue for LM studio, where json_object is not supported https://github.com/lmstudio-ai/lmstudio-bug-tracker/issues/189

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • [] I DID NOT read this template and provide the requested details.
Originally created by @smurfboyyessir on GitHub (May 6, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/496 ## Summary <!-- What is wrong in one or two sentences? --> When trying to start a Game using LM Studio connection, the game startup gets stuck and does not move forward. ## Expected behavior <!-- What should have happened? --> The Game should start and work normally ## Actual behavior <!-- What happened instead? --> The Game gets stuck and this error log appears in the Marinara server terminal window: ``` {"level":50,"time":1778055939826,"pid":11980,"reqId":"req-tz","err":{"type":"Error","message":"OpenAI API error 400: 'response_format.type' must be 'json_schema' or 'text'","stack":"Error: OpenAI API error 400: 'response_format.type' must be 'json_schema' or 'text'\n at OpenAIProvider.chatComplete (file:///F:/fall/AI_NEW/MarinaraEngine/packages/server/dist/services/llm/providers/openai.provider.js:749:19)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async Object.<anonymous> (file:///F:/fall/AI_NEW/MarinaraEngine/packages/server/dist/routes/game.routes.js:4675:24)"},"msg":"OpenAI API error 400: 'response_format.type' must be 'json_schema' or 'text'"}" ``` It happens when you click the Start Game button, after the initial generation has finished, but before moving to the background. ## Steps to reproduce 1. Run LM Studio locally 2. Set up connection to it via Custom (OAI-compatible) connection 3. Try to start a game. Watch debug logs. Error will be thrown shortly after hitting "Start game" button. ## Environment - Marinara Engine version: Release: v1.5.8 Build: 12b3ff8 - Install type: installer - OS + version: Windows 11 - Browser or app shell: Chrome ## Logs, screenshots, or video <!-- Paste relevant logs and add screenshots when possible --> <img width="1080" height="115" alt="Image" src="https://github.com/user-attachments/assets/095347fb-4671-4089-804f-c090e867b933" /> ## Additional context <!-- Optional: related issue links, temporary workaround, etc. --> Relates to this open issue for LM studio, where json_object is not supported https://github.com/lmstudio-ai/lmstudio-bug-tracker/issues/189 ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:26:32 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@smurfboyyessir commented on GitHub (May 7, 2026):

This PR fixes the issue on my machine -> https://github.com/Pasta-Devs/Marinara-Engine/pull/490

It's not super tightly scoped though, I added a few other things to fix some other issues I saw. Mostly related to timeouts on image gen and not having the whole game state get stuck when encountering errors. If it is preferred for me to just submit the one fix and nothing more broad then I can narrow it down.

The core fix is here -> https://github.com/Pasta-Devs/Marinara-Engine/pull/490/changes#diff-41cf0ca77fcb41665c8a4bff06a93d6e8623103b53fc2389d2ffa27c8057aa8fR131

<!-- gh-comment-id:4393078129 --> @smurfboyyessir commented on GitHub (May 7, 2026): This PR fixes the issue on my machine -> https://github.com/Pasta-Devs/Marinara-Engine/pull/490 It's not super tightly scoped though, I added a few other things to fix some other issues I saw. Mostly related to timeouts on image gen and not having the whole game state get stuck when encountering errors. If it is preferred for me to just submit the one fix and nothing more broad then I can narrow it down. The core fix is here -> https://github.com/Pasta-Devs/Marinara-Engine/pull/490/changes#diff-41cf0ca77fcb41665c8a4bff06a93d6e8623103b53fc2389d2ffa27c8057aa8fR131
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#227
No description provided.