[GH-ISSUE #7847] [Issue]: Support per-character API connections in group chats #4319

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

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

Summary

Allow each character in a group chat to use its own API connection so different models can voice different characters. Support character-level defaults and per-chat character overrides while retaining the existing chat connection as a fallback.

Expected behavior

Each character should be able to use a configured connection, with priority ordered as: per-chat character override, character default, then the group chat connection. Missing or deleted assigned connections should fall back to the chat connection with a warning.

Actual behavior

A group chat currently uses one API connection for all characters, so one model voices every character. The user must manually switch the chat connection between turns to use different models.

Steps to reproduce

  1. Create or open a group chat containing multiple characters.
  2. Configure a single API connection for the group chat.
  3. Trigger responses from multiple characters and observe that they all use the same connection.
  4. Switch the chat connection manually before each character responds to use different models.

Environment

  • Marinara Engine version: 2.5.0+9565a274111a
  • Install type: Not provided
  • OS + version: Server: Windows 10.0.26200 (x64); client: Windows 10.0
  • Browser or app shell: Chrome 155.0.0.0 via browser shell; standalone: false

Logs, screenshots, or video

No logs, screenshots, or video provided. Support diagnostics were included in the Discord context.

Additional context

Requested design: an optional Marinara-side character default connection, an optional per-character connection dropdown in group chat settings, and the existing chat connection as fallback. A roster label showing each character's active connection would be useful. Existing patterns include connection overrides for agents and impersonation, plus the random connection pool. Current workaround is Manual response order with manual connection switching between turns. Active connection during diagnostics: CHUB.AI - Soji; provider: custom; model: soji.

Discord thread: Feature Request - Per-character API connections (character default + per-chat override)
Discord thread link: https://discord.com/channels/1417099416812392641/1561812389140365352
Requested by: gunterlie (gunterlie, Discord ID 282074442962829312)

Discord thread transcript (3 messages)
[2026-10-19T18:44:50.642Z] Kneurotic: **Summary**
I'd love to be able to assign an API connection to a character, so different models can play different characters in the same group chat.

**Why**
Right now a group chat uses one connection for everyone, so one model ends up voicing every character. If each character could have its own model, each one keeps its own voice, and you get to watch two models actually interact. For example: Ray on Kimi K2.5 and Xavier on a DeepSeek RP finetune.

**Suggested design (layered fallback)**
1. **Character default:** an optional "preferred connection" on the character. Stored on the Marinara side, not in exported card data, since connections are local to each install.
2. **Per-chat override:** an optional connection dropdown per character in group chat settings.
3. **Chat connection:** used for anyone with nothing set, so nothing changes for people who don't use this.

Priority: chat override → character default → chat connection.

**Nice to have**
- Show which connection each character is using in the group chat (like a small label in the roster), so a character default never feels like a hidden surprise.
- If an assigned connection is deleted or missing, fall back to the chat connection with a warning instead of failing.

**Current workaround**
Set the group to Manual response order, then switch the chat's connection before triggering each character. It works, but it's a lot of clicking between every turn.

**Fits existing patterns**
Marinara already has connection overrides for agents and impersonate, plus the random connection pool, so this would be one more override in the same spirit.

Happy to test if it helps and thank you for taking the time to read and consider this. 

(Feature Request assembled with assistance from Claude Code)
---
` ` `
Marinara Engine diagnostics
Version: 2.5.0
Build: 2.5.0+9565a274111a
Commit: 9565a274111a
Server OS: Windows 10.0.26200 (x64)
Server memory: heap 353.5 / 4288 MiB; RSS 497 MiB
Background wake lock: not reported
Last detected freeze: none detected
Previous session: restarted itself for an update or a settings restart at 2026-10-19T18:24:08.206Z
Sessions ended without shutdown: 10 recorded
Client OS: Windows 10.0
Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36
Client runtime: {"build":"2.5.0+9565a274111a","page":"mvfl34jj-1f72zbtx","persistence":"local","navigation":"reload","standalone":false,"view":[1044,0,0,0],"events":[{"at":1792434205119,"page":"mvfl1o73-akwaa2we","build":"2.5.0+9565a274111a","kind":"page-start","view":[1044,0,0,0]},{"at":1792434272959,"page":"mvfl34jj-1f72zbtx","build":"2.5.0+9565a274111a","kind":"page-start","view":[1044,0,0,0]}]}
GPU: ANGLE (NVIDIA, NVIDIA GeForce RTX 5090 (0x00002B85) Direct3D11 vs_5_0 ps_5_0, D3D11)
Server GPU: probe pending
Main sidecar: running; gemma-4-26B-A4B-it-qat-UD-Q4_K_XL.gguf; 14.2 GB file; context 48000; backend win-x64-cuda; est. 17.4 GB VRAM
Utility sidecar: not configured
Decision sidecar: not configured
Sidecar load: probe pending
Active connection: CHUB.AI - Soji
Connection provider: custom
LLM model: soji
Professor Mari last acted on: none recorded this session
` ` `
[Discord message: https://discord.com/channels/1417099416812392641/1561812389140365352/1561812389140365352]

[2026-10-19T18:44:51.258Z] 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/1561812389140365352/1561812391723802708]

[2026-10-19T18:52:02.692Z] gunterlie: More Chaos, yes!
[Discord message: https://discord.com/channels/1417099416812392641/1561812389140365352/1561814201289412639]

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 (Oct 19, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7847 ## Summary Allow each character in a group chat to use its own API connection so different models can voice different characters. Support character-level defaults and per-chat character overrides while retaining the existing chat connection as a fallback. ## Expected behavior Each character should be able to use a configured connection, with priority ordered as: per-chat character override, character default, then the group chat connection. Missing or deleted assigned connections should fall back to the chat connection with a warning. ## Actual behavior A group chat currently uses one API connection for all characters, so one model voices every character. The user must manually switch the chat connection between turns to use different models. ## Steps to reproduce 1. Create or open a group chat containing multiple characters. 2. Configure a single API connection for the group chat. 3. Trigger responses from multiple characters and observe that they all use the same connection. 4. Switch the chat connection manually before each character responds to use different models. ## Environment - Marinara Engine version: 2.5.0+9565a274111a - Install type: Not provided - OS + version: Server: Windows 10.0.26200 (x64); client: Windows 10.0 - Browser or app shell: Chrome 155.0.0.0 via browser shell; standalone: false ## Logs, screenshots, or video No logs, screenshots, or video provided. Support diagnostics were included in the Discord context. ## Additional context Requested design: an optional Marinara-side character default connection, an optional per-character connection dropdown in group chat settings, and the existing chat connection as fallback. A roster label showing each character's active connection would be useful. Existing patterns include connection overrides for agents and impersonation, plus the random connection pool. Current workaround is Manual response order with manual connection switching between turns. Active connection during diagnostics: CHUB.AI - Soji; provider: custom; model: soji. Discord thread: Feature Request - Per-character API connections (character default + per-chat override) Discord thread link: https://discord.com/channels/1417099416812392641/1561812389140365352 Requested by: gunterlie (gunterlie, Discord ID 282074442962829312) <details> <summary>Discord thread transcript (3 messages)</summary> ```text [2026-10-19T18:44:50.642Z] Kneurotic: **Summary** I'd love to be able to assign an API connection to a character, so different models can play different characters in the same group chat. **Why** Right now a group chat uses one connection for everyone, so one model ends up voicing every character. If each character could have its own model, each one keeps its own voice, and you get to watch two models actually interact. For example: Ray on Kimi K2.5 and Xavier on a DeepSeek RP finetune. **Suggested design (layered fallback)** 1. **Character default:** an optional "preferred connection" on the character. Stored on the Marinara side, not in exported card data, since connections are local to each install. 2. **Per-chat override:** an optional connection dropdown per character in group chat settings. 3. **Chat connection:** used for anyone with nothing set, so nothing changes for people who don't use this. Priority: chat override → character default → chat connection. **Nice to have** - Show which connection each character is using in the group chat (like a small label in the roster), so a character default never feels like a hidden surprise. - If an assigned connection is deleted or missing, fall back to the chat connection with a warning instead of failing. **Current workaround** Set the group to Manual response order, then switch the chat's connection before triggering each character. It works, but it's a lot of clicking between every turn. **Fits existing patterns** Marinara already has connection overrides for agents and impersonate, plus the random connection pool, so this would be one more override in the same spirit. Happy to test if it helps and thank you for taking the time to read and consider this. (Feature Request assembled with assistance from Claude Code) --- ` ` ` Marinara Engine diagnostics Version: 2.5.0 Build: 2.5.0+9565a274111a Commit: 9565a274111a Server OS: Windows 10.0.26200 (x64) Server memory: heap 353.5 / 4288 MiB; RSS 497 MiB Background wake lock: not reported Last detected freeze: none detected Previous session: restarted itself for an update or a settings restart at 2026-10-19T18:24:08.206Z Sessions ended without shutdown: 10 recorded Client OS: Windows 10.0 Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36 Client runtime: {"build":"2.5.0+9565a274111a","page":"mvfl34jj-1f72zbtx","persistence":"local","navigation":"reload","standalone":false,"view":[1044,0,0,0],"events":[{"at":1792434205119,"page":"mvfl1o73-akwaa2we","build":"2.5.0+9565a274111a","kind":"page-start","view":[1044,0,0,0]},{"at":1792434272959,"page":"mvfl34jj-1f72zbtx","build":"2.5.0+9565a274111a","kind":"page-start","view":[1044,0,0,0]}]} GPU: ANGLE (NVIDIA, NVIDIA GeForce RTX 5090 (0x00002B85) Direct3D11 vs_5_0 ps_5_0, D3D11) Server GPU: probe pending Main sidecar: running; gemma-4-26B-A4B-it-qat-UD-Q4_K_XL.gguf; 14.2 GB file; context 48000; backend win-x64-cuda; est. 17.4 GB VRAM Utility sidecar: not configured Decision sidecar: not configured Sidecar load: probe pending Active connection: CHUB.AI - Soji Connection provider: custom LLM model: soji Professor Mari last acted on: none recorded this session ` ` ` [Discord message: https://discord.com/channels/1417099416812392641/1561812389140365352/1561812389140365352] [2026-10-19T18:44:51.258Z] 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/1561812389140365352/1561812391723802708] [2026-10-19T18:52:02.692Z] gunterlie: More Chaos, yes! [Discord message: https://discord.com/channels/1417099416812392641/1561812389140365352/1561814201289412639] ``` </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:14:48 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Gunterlie commented on GitHub (Oct 19, 2026):

after update

<!-- gh-comment-id:6274794208 --> @Gunterlie commented on GitHub (Oct 19, 2026): after update
Author
Owner

@Gunterlie commented on GitHub (Oct 19, 2026):

Summary of the follow-up discussion in the Discord thread, collected here so it stays with the issue.

Cost and warning

  • With one call per character, what used to be 1 model call per turn can become 2-N calls, which is a real wallet concern on pay-per-token connections.
  • Suggested: a small warning, similar to the existing "now using a paid API connection" fallback warning, and the feature off by default.
  • Convo mode already has a matching modal ("Individual replies can use many tokens" / "Large groups with Autonomous Messaging can increase token use quickly"); the same pattern could be reused.
  • Flat-rate subscriptions (e.g. Chub, NanoGPT) soften the cost.

Merged vs. individual response mode

  • Per-character connections only make sense in Individual mode. In Merged mode there is one call for everyone, so the chat connection is used for all.
  • Suggested: a short note in the settings so nobody wonders why per-character picks are ignored in merged mode.

Prompt cache

  • Individual mode already changes the <characters> section per turn, and that section sits high in most presets, so most of the prompt below it is already re-sent uncached on every character switch.
  • Result: switching models per character should cost little beyond what Individual mode already costs. Providers' cache behaviour when switching connections is still unverified.

Extension idea

  • Per-character connection settings (e.g. temperature: a hyper, forgetful character at 2.0, a calm one at 0) next to the connection itself.

Existing groundwork

  • Convo mode (Convo → add 2 characters → Group Chat) already has much of this groundwork: per-message individual replies plus the cost warning. It could be a base for bringing this into roleplay.
<!-- gh-comment-id:6275718481 --> @Gunterlie commented on GitHub (Oct 19, 2026): Summary of the follow-up discussion in the Discord thread, collected here so it stays with the issue. **Cost and warning** - With one call per character, what used to be 1 model call per turn can become 2-N calls, which is a real wallet concern on pay-per-token connections. - Suggested: a small warning, similar to the existing "now using a paid API connection" fallback warning, and the feature **off by default**. - Convo mode already has a matching modal ("Individual replies can use many tokens" / "Large groups with Autonomous Messaging can increase token use quickly"); the same pattern could be reused. - Flat-rate subscriptions (e.g. Chub, NanoGPT) soften the cost. **Merged vs. individual response mode** - Per-character connections only make sense in **Individual** mode. In **Merged** mode there is one call for everyone, so the chat connection is used for all. - Suggested: a short note in the settings so nobody wonders why per-character picks are ignored in merged mode. **Prompt cache** - Individual mode already changes the `<characters>` section per turn, and that section sits high in most presets, so most of the prompt below it is already re-sent uncached on every character switch. - Result: switching models per character should cost little beyond what Individual mode already costs. Providers' cache behaviour when switching connections is still unverified. **Extension idea** - Per-character connection **settings** (e.g. temperature: a hyper, forgetful character at 2.0, a calm one at 0) next to the connection itself. **Existing groundwork** - Convo mode (Convo → add 2 characters → Group Chat) already has much of this groundwork: per-message individual replies plus the cost warning. It could be a base for bringing this into roleplay.
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#4319
No description provided.