feat: support llmman as an Ollama-compatible local backend - #127
Open
ericcurtin wants to merge 1 commit into
Open
feat: support llmman as an Ollama-compatible local backend#127ericcurtin wants to merge 1 commit into
ericcurtin wants to merge 1 commit into
Conversation
llmman (https://github.com/llmmanorg/llmman) serves the Ollama API on port 17434, so the existing Ollama backend works with it once the Server Address points at http://localhost:17434/api. Widen the Origin-stripping declarativeNetRequest rule (Chrome dynamic + Firefox static) from 11434 to also match 17434, and document the setup in the README.
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.
Pull Request
Description
llmman is a local model runner that serves the Ollama API on port 17434, so NativeMind's existing Ollama backend works with it once the Server Address is set to
http://localhost:17434/api.utils/web-request.ts: widen the Chrome dynamicdeclarativeNetRequestOrigin-stripping rule from:11434to:(?:11434|17434); without it llmman hits the same CORS issue as Ollama from achrome-extension://origin. Same rule ID.public/rules.json: same widening for the static rule Firefox uses.README.md: llmman subsection under "AI Model Options" plus a troubleshooting line. No new UI or locale strings.Type of change
How Has This Been Tested?
Testing:
pnpm install --frozen-lockfile,pnpm wxt prepare,pnpm compile(vue-tsc --noEmit) andeslint utils/web-request.tspass; both regexes checked in Node to matchlocalhost:17434/127.0.0.1:11434and reject other ports.Checklist: