feat: multi-provider LLM architecture (Provider trait, registry, fallback, /models redesign)#45
Merged
Merged
Conversation
chinkan
force-pushed
the
feat/readme-improve-multi-session-brainstorm
branch
from
June 17, 2026 16:14
b369834 to
5b81d42
Compare
…rainstorming roadmap
chinkan
force-pushed
the
feat/readme-improve-multi-session-brainstorm
branch
from
June 17, 2026 16:20
5b81d42 to
4bad1de
Compare
…le/Ollama providers
…th fallback chain
chinkan
force-pushed
the
feat/readme-improve-multi-session-brainstorm
branch
from
June 23, 2026 01:44
38cc8e2 to
42aba59
Compare
chinkan
marked this pull request as ready for review
June 29, 2026 08:31
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
src/provider.rswithProvidertrait,ProviderRegistry, andProviderConfig— resolvesprovider/modelstrings to the correct providerOpenRouterProvider(with Kimi tool-call fallback + param sanitization),OpenAICompatibleProvider(generic LM Studio/vLLM/llama.cpp),OllamaProvider(delegates chat to OpenAI-compatible, custom/api/tagsdiscovery)[[provider]]TOML sections,[fallback]chain, backward-compat auto-synthesis from legacy[openrouter]sectionProviderRegistry— no direct config dependencyprocess_messageloop, per-providersupports_visionflag,set_modelpersists to correct TOML sectionollama/llama3.1)[[provider]]and[fallback]examples inconfig.example.tomlTest Plan
cargo check— cleancargo clippy -- -D warnings— cleancargo test— 393 unit + 16 integration, 0 failures