feat(ai): add Ollama Cloud provider - #525
Draft
thisisjun786 wants to merge 1 commit into
Draft
Conversation
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
OLLAMA_API_KEY/api/tagsand/api/show, with bounded inspection concurrency and last-known cache preservationmodels.jsoncatalogs while keeping Radius and other provider-owned refresh paths intactWhy this belongs in core
Provider-owned catalog refresh is composed before extensions and
models.jsonoverlays. The runtime previously replaced a built-in provider's own refresh implementation with the generic remote catalog wrapper, so an extension could not make Ollama Cloud appear as a first-class provider or preserve its dynamic catalog lifecycle.Verification
npm run checknpm run build:npmCI=1 npm testwith provider credentials unsetCompatibility and failure handling
ollamamodel catalog remains local and does not trigger Cloud discovery/api/showresult does not discard healthy modelsSummary by cubic
Adds a built-in Ollama Cloud provider with OpenAI-compatible
/v1support usingOLLAMA_API_KEY, featuring dynamic, cached model discovery from/api/tagsand/api/show. The runtime now preserves provider-owned refresh so both Ollama Cloud and Radius keep their dynamic catalogs.New Features
ollamaprovider (Cloud) with/v1/chat/completions./api/tags+/api/show; derives thinking, vision, and context window.OLLAMA_API_KEY; docs and CLI help updated; default model set toqwen3.5:397b.refreshModels, keeping Ollama Cloud and Radius dynamic catalogs intact.Migration
OLLAMA_API_KEY, then run:senpi update --modelsand select an Ollama Cloud model (e.g.,qwen3.5:397b).ollamaentries with explicitmodelsinmodels.jsonare unchanged and skip Cloud discovery.Written for commit fb26e7c. Summary will update on new commits.