mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1859] [MERGED] Fix ArliAI SD API image requests #5318
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#5318
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/1859
Author: @cha1latte
Created: 6/1/2026
Status: ✅ Merged
Merged: 6/1/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-1852-arliai-sd-api📝 Commits (2)
e62b402Fix ArliAI SD API image requests17c0dcaTighten ArliAI image source detection📊 Changes
3 files changed (+205 additions, -13 deletions)
View changed files
📝
src-tauri/src/commands/storage/images.rs(+1 -0)📝
src-tauri/src/commands/storage/images/providers.rs(+202 -11)📝
src-tauri/src/commands/storage/llm.rs(+2 -2)📄 Description
Linked issue
Closes #1852
Why this change
/sdapi/v1/txt2imgresponse shape, but Marinara's image-generation request path did not send bearer auth and only placed the selected model inoverride_settings./sdapi/v1/txt2imgendpoint as the base URL, which made related SD API paths append another/sdapi/v1/...segment.What changed
/sdapi/v1image URLs to the AUTOMATIC1111/SDNext image provider instead of the OpenAI-compatible image path.Authorization: Bearer ...for AUTOMATIC1111/SDNext image generation requests.sd_model_checkpointwhile preserving the existingoverride_settings.sd_model_checkpointbehavior for local WebUI compatibility./sdapi/v1, and endpoint URLs before generation, connection checks, and model-list fetches.images[]base64 response.Refactor impact
Primary owner:
Rust storage / image provider transport
Impact areas reviewed:
/sdapi/v1URLsBoundary notes:
src-tauriprivileged provider/runtime code.Pressure points touched:
src-tauri/src/commands/storage/images/providers.rssrc-tauri/src/commands/storage/images.rssrc-tauri/src/commands/storage/llm.rsValidation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
cargo test --manifest-path src-tauri/Cargo.toml automatic1111passed.cargo check --manifest-path src-tauri/Cargo.tomlpassed.pnpm checkpassed.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.jsonpassed locally.Authorization: Bearer arliai-secret; after the fix, the harness verified/sdapi/v1/txt2img, bearer auth, top-levelprompt, top-levelsd_model_checkpoint, ArliAI/SD API source inference, andimages[]base64 parsing.Feature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
N/A; backend/provider transport fix with command proof above.
Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.