mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2817] [Feature]: SDAPI usage for llama-swap (and stable-diffusion.cpp) #1430
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#1430
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 @Stegorix on GitHub (Jun 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2817
What problem does this solve?
LLama-Swap rejects an image generation request with the SDAPI, when the request is missing the "model" tag. llama-swap needs the model information to select and start the correct model
Proposed solution
The addition of the model tag when using the sdapi (/sdapi/v1/txt2img)
(Addtion of "model: request.model" to body in image-generation.ts:2176)
As i do not use any other sdapi compatible solutions, i cannot check if this will cause problems in them.
So maybe implement the solution as a toggle option?
Alternatives considered
stable-diffusion.cpp seems to support injections into the openai api. But making an adjustment at this point would involve significantly more work. Even better would be be a native support of the stable-diffusion.cpp and llama-swap apis. But as I am not very fluent in javascript, i cannot really help implementing such a feature.
Additional context
Example:
-> Result: AUTOMATIC1111 generation failed (404): {"error":"no model id could be identified","src":"llama-swap"}
After adding above solution the generation is working.
Template check