[PR #8364] [MERGED] fix(connections): list Arli AI image models on Fetch #8319

Closed
opened 2026-10-27 06:07:41 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8364
Author: @Promansis
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @Promansis

Base: staging ← Head: fix/arli-image-model-fetch


📝 Commits (1)

  • 0c1336e fix(connections): list Arli AI image models on Fetch (#8363)

📊 Changes

1 file changed (+23 additions, -0 deletions)

View changed files

📝 packages/server/src/routes/connections.routes.ts (+23 -0)

📄 Description

Important

Contributions target staging.

Linked issue

Closes #8363

Why this change

Pressing Fetch on an Arli AI image-generation connection did not show the image models. The Arli image source had no branch in GET /api/connections/:id/models, so it fell through to the generic <baseUrl>/models call, which returns Arli's chat models. Arli's documented image-model endpoint (/v1/models/image-models) answers 404 in practice; /sdapi/v1/sd-models is the one that works. The existing A1111 branch can't be reused because it appends the path to the /v1 base URL and sends no auth header.

What changed

  • packages/server/src/routes/connections.routes.ts: new arli image-source branch that calls <origin>/sdapi/v1/sd-models with the Bearer key, returns model_name as the model id, and drops modelType: "caption" entries (not image generators). A non-OK reply surfaces as Arli AI returned <status>: ….

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Author ran pnpm check (exit 0) and pressed Fetch on a real Arli connection against a test server on a separate port; the checkpoints listed. Still to verify manually:

  • Manually verify Fetch on an Arli image connection lists the image checkpoints and not the caption model.
  • Manually verify a bad API key shows the Arli AI returned 401: … error.
  • No automated test was added; the branch is a simple map and filter.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/8364 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix/arli-image-model-fetch` --- ### 📝 Commits (1) - [`0c1336e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0c1336e3a12bbfd088c5438f198a7499d166704c) fix(connections): list Arli AI image models on Fetch (#8363) ### 📊 Changes **1 file changed** (+23 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/routes/connections.routes.ts` (+23 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. ## Linked issue Closes #8363 ## Why this change Pressing Fetch on an Arli AI image-generation connection did not show the image models. The Arli image source had no branch in `GET /api/connections/:id/models`, so it fell through to the generic `<baseUrl>/models` call, which returns Arli's chat models. Arli's documented image-model endpoint (`/v1/models/image-models`) answers 404 in practice; `/sdapi/v1/sd-models` is the one that works. The existing A1111 branch can't be reused because it appends the path to the `/v1` base URL and sends no auth header. ## What changed - `packages/server/src/routes/connections.routes.ts`: new `arli` image-source branch that calls `<origin>/sdapi/v1/sd-models` with the Bearer key, returns `model_name` as the model id, and drops `modelType: "caption"` entries (not image generators). A non-OK reply surfaces as `Arli AI returned <status>: …`. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Author ran `pnpm check` (exit 0) and pressed Fetch on a real Arli connection against a test server on a separate port; the checkpoints listed. Still to verify manually: - Manually verify Fetch on an Arli image connection lists the image checkpoints and not the caption model. - Manually verify a bad API key shows the `Arli AI returned 401: …` error. - No automated test was added; the branch is a simple map and filter. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-27 06:07:41 +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#8319
No description provided.