mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3406] [MERGED] Add raw provider endpoints #5921
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#5921
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3406
Author: @kaldigo
Created: 7/9/2026
Status: ✅ Merged
Merged: 7/9/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/raw-provider-endpoints📝 Commits (2)
9326093Add raw provider endpointse00bbc2Merge branch 'staging' into codex/raw-provider-endpoints📊 Changes
2 files changed (+456 additions, -0 deletions)
View changed files
📝
packages/server/src/routes/generate.routes.ts(+2 -0)➕
packages/server/src/routes/generate/raw-route.ts(+454 -0)📄 Description
Linked issue
Closes #3405
Why this change
Extensions sometimes need small, non-mutating model utility calls without going through Marinara's chat generation pipeline.
/api/generate/dryRunis useful for previewing assembled chat prompts, but it still requires chat context and prompt assembly.This adds explicit raw provider endpoints for extension workflows such as style checks, scoring, classification, lightweight text transformation, and embedding lookup.
What changed
POST /api/generate/rawfor explicit raw chat messages through a saved connection.POST /api/generate/raw/abortfor aborting in-flight raw generation.POST /api/generate/raw/embeddingsfor non-mutating embeddings through a saved connection's configured embedding source./api/generate.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm --config.verify-deps-before-run=false check.pnpm --config.verify-deps-before-run=false version:check.pnpm --config.verify-deps-before-run=false guard:installer-artifacts.DATA_DIRon port7861.POST /api/generate/rawprompt preview returns only explicit raw messages.POST /api/generate/rawreturns a non-streaming response.raw_started,token,result, anddone.{ "aborted": true }from both the abort endpoint and original request.POST /api/generate/raw/embeddingsreturns a 768-dimensional vector using the connection's configured embedding model.Docs and release impact
UI evidence (if applicable)
Not applicable; this is server API-only.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.