feat: add llmman provider - #3880
Open
ericcurtin wants to merge 1 commit into
Open
Conversation
llmman (https://github.com/llmmanorg/llmman) runs local models distributed as OCI artifacts and serves an OpenAI-compatible API on port 17434. Since the API is OpenAI-compatible, the definition and model class mirror the LM Studio provider rather than the Ollama one. It is registered alongside the other local providers in the places that treat a provider as usable without an API key. No provider icon is included; ProviderIcon has no branch for llmman and falls through to the empty svg. Signed-off-by: Eric Curtin <eric.curtin@docker.com>
Contributor
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Description
Adds llmman, which runs local models distributed as OCI artifacts and serves an OpenAI-compatible API on port 17434 (it also speaks the Ollama and Anthropic APIs, but Chatbox only needs the OpenAI one).
Because the API is OpenAI-compatible, the definition and model class mirror
lmstudio.tsrather thanollama.ts—Llmman extends OpenAICompatible, same asLMStudio. It's registered alongside the other local providers in the places that treat a provider as usable without an API key:useProviders,settingActions,llm_utils, and the$providerIdroute list.Additional Notes
No provider icon is included.
ProviderIconhas no branch for llmman, so it falls through to the empty<svg>and renders blank. OnlyCustom,OpenAIResponsesandVolcEngineare in that position today, so this is a visible gap rather than the norm. I didn't want to guess at a 24×24 monochrome mark for someone else's logo — happy to add one if you tell me what you'd accept, or to take a path you provide.Testing:
tsc --noEmitreports 6005 errors both before and after my change, verified against a stashed baseline. That baseline is high because I typechecked without installing dependencies, so most of it is module resolution — it's the delta that's meaningful here, not the absolute number. An earlier iteration showed a delta of 2, which is how I found a missingaiProviderNameHashentry insrc/shared/models/index.ts; both are fixed and the delta is now zero.Not verified: no run of the app against a live server, so the settings UI and a real completion are untested.
Contributor Agreement
I've deliberately left the box below unticked: it's a rights grant that the account owner should make personally rather than have tooling tick on their behalf. @ericcurtin will confirm it in a comment below.
[ ] I have read and agree with the above statement.