[GH-ISSUE #4863] [Issue]: DeepSeek API rejects character role in Roleplay mode #2688

Closed
opened 2026-10-21 05:53:05 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Roleplay generations fail when a Custom OpenAI-compatible connection points to the DeepSeek API because Marinara sends a message with the unsupported character role. The issue occurs in versions 2.4.1 and 2.4.2.

Expected behavior

Roleplay generations should complete successfully through the DeepSeek API, as they reportedly did before Marinara 2.4.1.

Actual behavior

Every Roleplay generation fails with HTTP 400 because DeepSeek only accepts the roles system, user, assistant, tool, and latest_reminder. Chat and Game Mode work with the same API connection.

Steps to reproduce

  1. Configure a Custom OpenAI-compatible connection that points to the DeepSeek API.
  2. Disable tools or function calls.
  3. Select Roleplay chat mode.
  4. Attempt to generate a response.
  5. Observe an HTTP 400 error reporting an unsupported character message role.

Environment

  • Marinara Engine version: 2.4.2; also reproduced on 2.4.1
  • Install type: docker
  • OS + version: Arch Linux; version not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

Error: Custom OpenAI-compatible endpoint error 400: Failed to deserialize the JSON body into the target type: messages[5].role: unknown variant character, expected one of system, user, assistant, tool, latest_reminder at line 1 column 46183

Additional context

The installation uses a Docker/Podman container. DeepSeek models work through OpenRouter, and other models also work there. The direct DeepSeek API reportedly worked before Marinara 2.4.1. The issue appears limited to Roleplay mode; Chat and Game Mode work. Tools are disabled. Official DeepSeek API support is not currently provided.

Discord thread: DeepSeek API rejects character message role in Roleplay
Discord thread link: https://discord.com/channels/1417099416812392641/1536363071025455145
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (9 messages)
[2026-08-10T13:18:20.378Z] Goldov1n: OS: Arch Linux
Installation: Docker / Podman container
Marinara version: 2.4.2 (also happened with 2.4.1 I upgraded to check if the issue was fixed) 


Chat mode: Roleplay

What happens:
When using a Custom (OpenAI-compatible) connection pointed at the DeepSeek API, every Roleplay generation fails with


Custom OpenAI-compatible endpoint error 400: Failed to deserialize the JSON body into the target type: messages[5].role: unknown variant character, expected one of system, user, assistant, tool, latest_reminder at line 1 column 46183
[Discord message: https://discord.com/channels/1417099416812392641/1536363071025455145/1536363071025455145]

[2026-08-10T13:19:24.210Z] Marinara: Just use it through OR.
[Discord message: https://discord.com/channels/1417099416812392641/1536363071025455145/1536363338756264036]

[2026-08-10T13:19:30.075Z] Marinara: For the time being.
[Discord message: https://discord.com/channels/1417099416812392641/1536363071025455145/1536363363355984044]

[2026-08-10T13:19:36.194Z] Marinara: See if the issue happens there, too.
[Discord message: https://discord.com/channels/1417099416812392641/1536363071025455145/1536363389020934185]

[2026-08-10T13:19:47.310Z] Marinara: We don't have official DS API support.
[Discord message: https://discord.com/channels/1417099416812392641/1536363071025455145/1536363435644952636]

[2026-08-10T13:24:26.376Z] Goldov1n: Yea I can confirm It works through OR even with the Deepseek models (other models work too)

It's just weird this started happening with this last 2.4 versions.

It always worked flawlessly before that, and for some reason it seems to only be on Roleplay? Chat and Game Mode work no problem.
[Discord message: https://discord.com/channels/1417099416812392641/1536363071025455145/1536364606132322324]

[2026-08-10T13:26:56.779Z] Marinara: Are you sure you don't have function calls enabled or something like that?
[Discord message: https://discord.com/channels/1417099416812392641/1536363071025455145/1536365236968493096]

[2026-08-10T13:27:20.870Z] Marinara: DS recently released new version of the models, so maybe they changed something on their side.
[Discord message: https://discord.com/channels/1417099416812392641/1536363071025455145/1536365338013208586]

[2026-08-10T13:28:05.788Z] Goldov1n: Tool disabled so yea if you didn't change anything about calls then it's probably something they did
[Discord message: https://discord.com/channels/1417099416812392641/1536363071025455145/1536365526412951663]

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 (Aug 10, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4863 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Roleplay generations fail when a Custom OpenAI-compatible connection points to the DeepSeek API because Marinara sends a message with the unsupported `character` role. The issue occurs in versions 2.4.1 and 2.4.2. ## Expected behavior Roleplay generations should complete successfully through the DeepSeek API, as they reportedly did before Marinara 2.4.1. ## Actual behavior Every Roleplay generation fails with HTTP 400 because DeepSeek only accepts the roles `system`, `user`, `assistant`, `tool`, and `latest_reminder`. Chat and Game Mode work with the same API connection. ## Steps to reproduce 1. Configure a Custom OpenAI-compatible connection that points to the DeepSeek API. 2. Disable tools or function calls. 3. Select Roleplay chat mode. 4. Attempt to generate a response. 5. Observe an HTTP 400 error reporting an unsupported `character` message role. ## Environment - Marinara Engine version: 2.4.2; also reproduced on 2.4.1 - Install type: docker - OS + version: Arch Linux; version not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Error: `Custom OpenAI-compatible endpoint error 400: Failed to deserialize the JSON body into the target type: messages[5].role: unknown variant character, expected one of system, user, assistant, tool, latest_reminder at line 1 column 46183` ## Additional context The installation uses a Docker/Podman container. DeepSeek models work through OpenRouter, and other models also work there. The direct DeepSeek API reportedly worked before Marinara 2.4.1. The issue appears limited to Roleplay mode; Chat and Game Mode work. Tools are disabled. Official DeepSeek API support is not currently provided. Discord thread: DeepSeek API rejects character message role in Roleplay Discord thread link: https://discord.com/channels/1417099416812392641/1536363071025455145 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (9 messages)</summary> ```text [2026-08-10T13:18:20.378Z] Goldov1n: OS: Arch Linux Installation: Docker / Podman container Marinara version: 2.4.2 (also happened with 2.4.1 I upgraded to check if the issue was fixed) Chat mode: Roleplay What happens: When using a Custom (OpenAI-compatible) connection pointed at the DeepSeek API, every Roleplay generation fails with Custom OpenAI-compatible endpoint error 400: Failed to deserialize the JSON body into the target type: messages[5].role: unknown variant character, expected one of system, user, assistant, tool, latest_reminder at line 1 column 46183 [Discord message: https://discord.com/channels/1417099416812392641/1536363071025455145/1536363071025455145] [2026-08-10T13:19:24.210Z] Marinara: Just use it through OR. [Discord message: https://discord.com/channels/1417099416812392641/1536363071025455145/1536363338756264036] [2026-08-10T13:19:30.075Z] Marinara: For the time being. [Discord message: https://discord.com/channels/1417099416812392641/1536363071025455145/1536363363355984044] [2026-08-10T13:19:36.194Z] Marinara: See if the issue happens there, too. [Discord message: https://discord.com/channels/1417099416812392641/1536363071025455145/1536363389020934185] [2026-08-10T13:19:47.310Z] Marinara: We don't have official DS API support. [Discord message: https://discord.com/channels/1417099416812392641/1536363071025455145/1536363435644952636] [2026-08-10T13:24:26.376Z] Goldov1n: Yea I can confirm It works through OR even with the Deepseek models (other models work too) It's just weird this started happening with this last 2.4 versions. It always worked flawlessly before that, and for some reason it seems to only be on Roleplay? Chat and Game Mode work no problem. [Discord message: https://discord.com/channels/1417099416812392641/1536363071025455145/1536364606132322324] [2026-08-10T13:26:56.779Z] Marinara: Are you sure you don't have function calls enabled or something like that? [Discord message: https://discord.com/channels/1417099416812392641/1536363071025455145/1536365236968493096] [2026-08-10T13:27:20.870Z] Marinara: DS recently released new version of the models, so maybe they changed something on their side. [Discord message: https://discord.com/channels/1417099416812392641/1536363071025455145/1536365338013208586] [2026-08-10T13:28:05.788Z] Goldov1n: Tool disabled so yea if you didn't change anything about calls then it's probably something they did [Discord message: https://discord.com/channels/1417099416812392641/1536363071025455145/1536365526412951663] ``` </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 05:53:05 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Aug 10, 2026):

Skill issue on the user.

<!-- gh-comment-id:5241165221 --> @SpicyMarinara commented on GitHub (Aug 10, 2026): Skill issue on the user.
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#2688
No description provided.