Repository navigation
feat: add LocalAI local runtime support - #915
Merged
Merged
Conversation
57 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
localaiprovider identity across Core, Runtime, CLI, Storage, Headless/Harbor, and Desktop.http://localhost:8080/v1, discover exact model IDs from/v1/models, and keep API-key authentication optional: empty credentials send noAuthorizationheader, while configured credentials use Bearer auth.Why
Issue #860 Phase 5 needs a first-class LocalAI path without turning every self-hosted OpenAI-compatible deployment into a new provider. This slice reuses the existing OpenAI-compatible runtime and discovery seams while preserving LocalAI's distinct persisted identity and its default no-auth, optional-auth contract. Refs #860.
Scope
This PR adds LocalAI only. It does not add vLLM or another generic self-hosted deployment provider; those remain under
openai-compatible. The deterministic two-stage tool fixture is intentionally limited to an officially supported llama.cpp tool-trained Qwen3 configuration and does not claim provider-wide tool-call parity. Phase 7 is out of scope.Verification
node ../../worktree-bootstrap.mjs— rebuilt every workspace from the final rebased tree; renderer production build and notice check passed.npm run typecheck— passed for every workspace after the final rebase.npm run check:staleandgit diff --check origin/main...HEAD— passed.b10e330590766ea621c0b03401e77a0589558e76; SHA-2561349c022f30a58836e9b09591031f25bf4ff6bb8627bb50691a46a1c8a512c39.npm --workspace @maka/desktop run e2e -- --grep "adds LocalAI"— passed locally with one worker after correcting the E2E contract to accept Vite-emitted SVG asset URLs while retaining the computed current-color assertion. No screenshot is attached because this reuses the existing provider-logo layout and mask styling; the byte-governance unit contract plus computed-style E2E are the relevant evidence.Impact
Existing persisted connections are unchanged. Users can add LocalAI with its localhost default, use discovered exact aliases, and optionally save an API key. No migration is required. The provider and bundled third-party asset notice are user-visible release-note items.
Reviewer notes
Please focus on the optional-auth boundary, exact model-ID preservation, Harbor secret isolation, and the deliberately model-specific tool/reasoning fixture. The official SVG is vendored without modification from
mudler/LocalAIand rendered through the existingProviderAssetMaskseam.The named
reviewerpass reported one P2 in the optional-auth validation-state projection. Rebased commitbd458ce5fixes it at the Core auth-contract owner. After the E2E contract correction, the reviewer audited final HEADf6bf32165147726ade7b99ca52b73aca6c9a4672against base557102b6b5276894c545d920ece883a88be6cf2aand reported 0 P0–P3 findings.Ready for review
Verificationexplains why it is not applicable