mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3405] [Feature]: Add raw provider endpoints for extension utility calls #1843
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1843
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kaldigo on GitHub (Jul 9, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3405
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
Extensions sometimes need to make small, non-mutating model calls without going through the full chat generation pipeline.
/api/generate/dryRunis useful for previewing Marinara generation, but it still requires a chat and can include chat/preset/prompt assembly behavior. For extension workflows such as style checking, scoring, classification, or lightweight text transformation, it would be cleaner to send explicit raw messages to a saved provider connection and receive the model response without chat history, lore, agents, tools, persistence, or prompt mutation.Embeddings have a similar gap: provider embedding support exists internally for lorebooks/memory recall, but there is no generic non-mutating endpoint for extensions or utility callers to request embeddings from a saved connection.
Proposed solution
Add low-level, non-mutating raw provider endpoints under
/api/generate:POST /api/generate/rawconnectionId.messages.POST /api/generate/raw/abort.POST /api/generate/raw/embeddingsconnectionId.embeddingModel,embeddingBaseUrl,embeddingConnectionId, and local sidecar behavior where supported.This would give extensions a safe primitive for model utility calls while keeping provider configuration server-side.
Alternatives considered
/api/generate/dryRun: this still requires chat context and is designed around Marinara prompt assembly rather than raw provider calls.Additional context
This is useful for extension workflows like style linting, prose checks, scoring, classification, and RAG-style helper calls where the caller wants explicit control over the prompt and no chat-generation side effects.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jul 9, 2026):
Very useful stuff, thank you!