[GH-ISSUE #5932] [Issue]: Professor Mari returns a 500 error with local model connections #3279

Closed
opened 2026-10-21 06:01:38 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @SpicyMarinara on GitHub (Sep 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5932

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Professor Mari stopped working when connected to local Qwen or Ministral models. The request fails with an HTTP 500 response and no streamed choices.

Expected behavior

Professor Mari should process the request and return a response through the configured local model connection.

Actual behavior

The request fails with a 500 error: "OpenAI chatComplete() stream response missing choices: Engine protocol predict request returned 500." The underlying error indicates that the system message must be at the beginning.

Steps to reproduce

  1. Configure Marinara Engine to use a local Qwen or Ministral model through a custom connection.
  2. Use Professor Mari for a roleplay request.
  3. Observe that the request fails with an HTTP 500 response instead of producing a response.

Environment

  • Marinara Engine version: 2.4.4 (build 2.4.4+1a299369ac70, commit 1a299369ac)
  • Install type: Not provided
  • OS + version: Server: Linux 7.2.3-arch1-2 (x64); Client: Linux
  • Browser or app shell: Mozilla/5.0 (X11; Linux x86_64; rv:155.0) Gecko/20100101 Firefox/155.0

Logs, screenshots, or video

Error: "OpenAI chatComplete() stream response missing choices: Engine protocol predict request returned 500: {"error":{"code":500,"message":"While executing CallExpression at line 85, column 32 ... raise_exception('System message must be at the beginning ..."}}". Debug log attached: https://cdn.discordapp.com/attachments/1546563411330994196/1546563411620528240/debug.log?ex=6aa03ceb&is=6a9eeb6b&hm=2d8ecef4abbf3643895e1fbc11acc14e713fe4a09b507c3eda1418e637e09c37

Additional context

The active connection at the time of reporting was the custom provider model ministral-3-3b-instruct-2512-absolute-heresy-i1. The reporter also tried a local Qwen model and stated that both models work for roleplay outside Professor Mari. GPU: NVIDIA GeForce RTX 4090.

Discord thread: Prof Mari stopped working
Discord thread link: https://discord.com/channels/1417099416812392641/1546563411330994196
Requested by: Kuc0 (kuc0, Discord ID 108988150629531648)

Discord thread transcript (2 messages)
[2026-09-07T16:50:51.020Z] Takun: I'm not sure what happened, Mari isn't working for me now. I have the connection set to my local qwen (and have tried ministral too, both of which work for roleplay). I get some error 500 response:

` ` `OpenAI chatComplete() stream response missing choices: Engine protocol predict request returned 500: {"error":{"code":500,"message":"\n------------\nWhile executing CallExpression at line 85, column 32 in source:\n...first %}↵ {{- raise_exception('System message must be at the beginnin...\n ^\nError: ` ` `

Marinara Engine diagnostics
Version: 2.4.4
Build: 2.4.4+1a299369ac70
Commit: 1a299369ac70
Server OS: Linux 7.2.3-arch1-2 (x64)
Server memory: heap 113.2 / 4192 MiB; RSS 436.3 MiB
Client OS: Linux
Browser / app shell: Mozilla/5.0 (X11; Linux x86_64; rv:155.0) Gecko/20100101 Firefox/155.0
GPU: NVIDIA GeForce RTX 4090
Active connection: ministral-3-3b-instruct-2512-absolute-heresy-i1
Connection provider: custom
LLM model: ministral-3-3b-instruct-2512-absolute-heresy-i1
[attached file: debug.log — https://cdn.discordapp.com/attachments/1546563411330994196/1546563411620528240/debug.log?ex=6aa03ceb&is=6a9eeb6b&hm=2d8ecef4abbf3643895e1fbc11acc14e713fe4a09b507c3eda1418e637e09c37&]
[Discord message: https://discord.com/channels/1417099416812392641/1546563411330994196/1546563411330994196]

[2026-09-07T16:50:51.791Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1546563411330994196/1546563414564937738]

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 @SpicyMarinara on GitHub (Sep 7, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5932 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Professor Mari stopped working when connected to local Qwen or Ministral models. The request fails with an HTTP 500 response and no streamed choices. ## Expected behavior Professor Mari should process the request and return a response through the configured local model connection. ## Actual behavior The request fails with a 500 error: "OpenAI chatComplete() stream response missing choices: Engine protocol predict request returned 500." The underlying error indicates that the system message must be at the beginning. ## Steps to reproduce 1. Configure Marinara Engine to use a local Qwen or Ministral model through a custom connection. 2. Use Professor Mari for a roleplay request. 3. Observe that the request fails with an HTTP 500 response instead of producing a response. ## Environment - Marinara Engine version: 2.4.4 (build 2.4.4+1a299369ac70, commit 1a299369ac70) - Install type: Not provided - OS + version: Server: Linux 7.2.3-arch1-2 (x64); Client: Linux - Browser or app shell: Mozilla/5.0 (X11; Linux x86_64; rv:155.0) Gecko/20100101 Firefox/155.0 ## Logs, screenshots, or video Error: "OpenAI chatComplete() stream response missing choices: Engine protocol predict request returned 500: {\"error\":{\"code\":500,\"message\":\"While executing CallExpression at line 85, column 32 ... raise_exception('System message must be at the beginning ...\"}}". Debug log attached: https://cdn.discordapp.com/attachments/1546563411330994196/1546563411620528240/debug.log?ex=6aa03ceb&is=6a9eeb6b&hm=2d8ecef4abbf3643895e1fbc11acc14e713fe4a09b507c3eda1418e637e09c37 ## Additional context The active connection at the time of reporting was the custom provider model ministral-3-3b-instruct-2512-absolute-heresy-i1. The reporter also tried a local Qwen model and stated that both models work for roleplay outside Professor Mari. GPU: NVIDIA GeForce RTX 4090. Discord thread: Prof Mari stopped working Discord thread link: https://discord.com/channels/1417099416812392641/1546563411330994196 Requested by: Kuc0 (kuc0, Discord ID 108988150629531648) <details> <summary>Discord thread transcript (2 messages)</summary> ```text [2026-09-07T16:50:51.020Z] Takun: I'm not sure what happened, Mari isn't working for me now. I have the connection set to my local qwen (and have tried ministral too, both of which work for roleplay). I get some error 500 response: ` ` `OpenAI chatComplete() stream response missing choices: Engine protocol predict request returned 500: {"error":{"code":500,"message":"\n------------\nWhile executing CallExpression at line 85, column 32 in source:\n...first %}↵ {{- raise_exception('System message must be at the beginnin...\n ^\nError: ` ` ` Marinara Engine diagnostics Version: 2.4.4 Build: 2.4.4+1a299369ac70 Commit: 1a299369ac70 Server OS: Linux 7.2.3-arch1-2 (x64) Server memory: heap 113.2 / 4192 MiB; RSS 436.3 MiB Client OS: Linux Browser / app shell: Mozilla/5.0 (X11; Linux x86_64; rv:155.0) Gecko/20100101 Firefox/155.0 GPU: NVIDIA GeForce RTX 4090 Active connection: ministral-3-3b-instruct-2512-absolute-heresy-i1 Connection provider: custom LLM model: ministral-3-3b-instruct-2512-absolute-heresy-i1 [attached file: debug.log — https://cdn.discordapp.com/attachments/1546563411330994196/1546563411620528240/debug.log?ex=6aa03ceb&is=6a9eeb6b&hm=2d8ecef4abbf3643895e1fbc11acc14e713fe4a09b507c3eda1418e637e09c37&] [Discord message: https://discord.com/channels/1417099416812392641/1546563411330994196/1546563411330994196] [2026-09-07T16:50:51.791Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1546563411330994196/1546563414564937738] ``` </details> ## 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-21 06:01:38 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 7, 2026):

Owner: @SpicyMarinara (Codex). Investigating the Engine-owned behavior in draft #5939 as part of the assigned issue sweep. Existing open/draft PRs and issue links were checked; package-owned changes, if required, will be kept out of Engine.

<!-- gh-comment-id:5575868612 --> @SpicyMarinara commented on GitHub (Sep 7, 2026): Owner: @SpicyMarinara (Codex). Investigating the Engine-owned behavior in draft #5939 as part of the assigned issue sweep. Existing open/draft PRs and issue links were checked; package-owned changes, if required, will be kept out of Engine.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 8, 2026):

Mari now combines trusted system context into one leading system message before each command round. Native request-shape regressions passed; compatibility with the specific live local model remains a manual check. Merged into staging in #5939 at 20b3d2ce99 after the full required CI matrix and CodeRabbit review completed. Automated evidence and manual verification limits are recorded in the PR.

<!-- gh-comment-id:5577393814 --> @SpicyMarinara commented on GitHub (Sep 8, 2026): Mari now combines trusted system context into one leading system message before each command round. Native request-shape regressions passed; compatibility with the specific live local model remains a manual check. Merged into staging in #5939 at 20b3d2ce99245fa03a09bd14a81e66a1c9536716 after the full required CI matrix and CodeRabbit review completed. Automated evidence and manual verification limits are recorded in the PR.
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#3279
No description provided.