[GH-ISSUE #280] [Feature]: New Flexible Endpoint to serve extensions #113

Closed
opened 2026-10-20 17:25:16 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Xelvanis on GitHub (Apr 28, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/280

What problem does this solve?

Extensions currently have no way to send a generation request, or inspect/preview the generation pipeline, without side effects (e.g. triggering agents, firing webhooks, persisting/appending messages into chat history). Extensions are currently limited in what endpoints they can call to run requests, with sidecar/local being the only option for side effect free generation; this means API connections are rendered inaccessible for this purpose.

This means us plebs who want ME to do certain things, like running /impersonate without actually sending it as a chat message yet, or, iunno, asking {{char}} to make an AITA post, but putting the result in a custom UI panel, have to go whine in the forums for hyper-specific, niche changes, or go back to SillyTavern (I don't wanna).

Proposed solution

A stopgap non-persisting endpoint that runs the full prompt assembly and LLM generation pipeline without any durable side effects — giving extensions a clean "what-if" surface until a proper extension API is designed.

Look at all these cool things that you could do with a custom endpoint!

Image

The possibilities are truly endless.

Alternatives considered

I have considered crying to Mari on the ME forums to change how impersonate works. She seems busy.

Additional context

I spent three days hyperfixating on a custom endpoint that is now currently functional. Please refer to my PR. Luka said I could >:

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 @Xelvanis on GitHub (Apr 28, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/280 ## What problem does this solve? Extensions currently have no way to send a generation request, or inspect/preview the generation pipeline, without side effects (e.g. triggering agents, firing webhooks, persisting/appending messages into chat history). Extensions are currently limited in what endpoints they can call to run requests, with sidecar/local being the only option for side effect free generation; this means API connections are rendered inaccessible for this purpose. This means us plebs who want ME to do certain things, like running /impersonate without actually sending it as a chat message yet, or, iunno, asking {{char}} to make an AITA post, but putting the result in a custom UI panel, have to go whine in the forums for hyper-specific, niche changes, or go back to SillyTavern (I don't wanna). ## Proposed solution A stopgap non-persisting endpoint that runs the full prompt assembly and LLM generation pipeline without any durable side effects — giving extensions a clean "what-if" surface until a proper extension API is designed. Look at all these cool things that you could do with a custom endpoint! <img width="800" height="984" alt="Image" src="https://github.com/user-attachments/assets/5fe5357e-7852-4cf1-8fd8-2d9fc3a53e1f" /> The possibilities are truly endless. ## Alternatives considered I have considered crying to Mari on the ME forums to change how impersonate works. She seems busy. ## Additional context I spent three days hyperfixating on a custom endpoint that is now currently functional. Please refer to my PR. Luka said I could >: ## 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:25:16 +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#113
No description provided.