[GH-ISSUE #1341] [Issue]: Refactor needs explicit local sidecar embedding endpoint parity #665

Closed
opened 2026-10-20 17:31:33 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @cha1latte on GitHub (May 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1341

Originally assigned to: @Promansis on GitHub.

Summary

Local Model sidecar embedding endpoint parity for /api/sidecar/v1/embeddings is partial and needs an explicit remote API check in refactor.

Expected behavior

Refactor should preserve the v1.6.0/v1.6.1 local sidecar embedding endpoint behavior, or provide an intentional replacement for hostable/runtime use.

Actual behavior

Embedding connection UI and local embedding code exist, but the old HTTP endpoint may not exist in Tauri/hostable form.

Steps to reproduce

  1. Open the refactor branch at
Originally created by @cha1latte on GitHub (May 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1341 Originally assigned to: @Promansis on GitHub. ## Summary Local Model sidecar embedding endpoint parity for /api/sidecar/v1/embeddings is partial and needs an explicit remote API check in refactor. ## Expected behavior Refactor should preserve the v1.6.0/v1.6.1 local sidecar embedding endpoint behavior, or provide an intentional replacement for hostable/runtime use. ## Actual behavior Embedding connection UI and local embedding code exist, but the old HTTP endpoint may not exist in Tauri/hostable form. ## Steps to reproduce 1. Open the refactor branch at
Author
Owner

@cha1latte commented on GitHub (May 26, 2026):

Audit follow-up: this is remote/hostable API parity. Suggested proof should explicitly check whether /api/sidecar/v1/embeddings exists or has an intentional replacement, then verify lorebook embedding calls use the supported path.

<!-- gh-comment-id:4549579018 --> @cha1latte commented on GitHub (May 26, 2026): Audit follow-up: this is remote/hostable API parity. Suggested proof should explicitly check whether /api/sidecar/v1/embeddings exists or has an intentional replacement, then verify lorebook embedding calls use the supported path.
Author
Owner

@SpicyMarinara commented on GitHub (May 27, 2026):

Fixed on refactor in 344376ce.

Added the explicit refactor replacement for the legacy sidecar embedding route:

  • marinara-server now exposes POST /api/sidecar/v1/embeddings with OpenAI-style input and response shape.
  • The route is backed by configured Marinara embedding connections instead of the retired managed sidecar process. It accepts connectionId/connection/provider request data and falls back to the configured default embedding connection.
  • Lorebook vectorization now follows embeddingConnectionId and respects embeddingBaseUrl before baseUrl, so local OpenAI-compatible/Ollama/provider embedding paths use the supported refactor connection settings.
  • Developer docs include a curl smoke test for the endpoint and clarify the managed-sidecar replacement semantics.

Validation:

  • cargo test --manifest-path src-tauri/Cargo.toml --workspace embedding_ -- --nocapture
  • pnpm check:docs
  • git diff --check
  • pnpm check
<!-- gh-comment-id:4554742294 --> @SpicyMarinara commented on GitHub (May 27, 2026): Fixed on refactor in 344376ce. Added the explicit refactor replacement for the legacy sidecar embedding route: - marinara-server now exposes POST /api/sidecar/v1/embeddings with OpenAI-style input and response shape. - The route is backed by configured Marinara embedding connections instead of the retired managed sidecar process. It accepts connectionId/connection/provider request data and falls back to the configured default embedding connection. - Lorebook vectorization now follows embeddingConnectionId and respects embeddingBaseUrl before baseUrl, so local OpenAI-compatible/Ollama/provider embedding paths use the supported refactor connection settings. - Developer docs include a curl smoke test for the endpoint and clarify the managed-sidecar replacement semantics. Validation: - cargo test --manifest-path src-tauri/Cargo.toml --workspace embedding_ -- --nocapture - pnpm check:docs - git diff --check - pnpm check
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#665
No description provided.