Skip to content

Comments

feat: CompatibleProvider and RouterProvider for LLM flexibility#386

Merged
bug-ops merged 2 commits intomainfrom
feat/m20/provider-flexibility
Feb 16, 2026
Merged

feat: CompatibleProvider and RouterProvider for LLM flexibility#386
bug-ops merged 2 commits intomainfrom
feat/m20/provider-flexibility

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Feb 16, 2026

Summary

Both are feature-gated (compatible, router) and default-enabled. Config via [[llm.compatible]] array and [llm.router] TOML sections.

Test plan

  • cargo +nightly fmt --check passes
  • cargo clippy --workspace -- -D warnings passes
  • cargo nextest run --workspace --lib --bins — 1448 passed, 9 skipped
  • 21 new unit tests for CompatibleProvider (10) and RouterProvider (11)
  • Security audit: no critical issues, API keys resolved via vault
  • Performance: zero overhead for CompatibleProvider, acceptable for RouterProvider

Closes #375, closes #376, closes #365

Implement two new LLM providers in zeph-llm:

- CompatibleProvider: generic OpenAI-compatible adapter with configurable
  base_url, covering Groq, Together, Mistral, vLLM and similar APIs
  with zero per-provider code (#375)

- RouterProvider: sequential fallback chain across multiple providers,
  emitting status events on failover and returning NoProviders when
  all backends are exhausted (#376)

Both providers are feature-gated (compatible, router) and enabled by
default. Config uses [[llm.compatible]] array and [llm.router] section
in TOML with ZEPH_COMPATIBLE_<NAME>_API_KEY env var support.

Closes #375, closes #376
@github-actions github-actions bot added enhancement New feature or request size/XL llm LLM provider related rust core dependencies config and removed size/XL labels Feb 16, 2026
@bug-ops bug-ops enabled auto-merge (squash) February 16, 2026 22:36
@bug-ops bug-ops merged commit d9a6cb4 into main Feb 16, 2026
18 checks passed
@bug-ops bug-ops deleted the feat/m20/provider-flexibility branch February 16, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Router provider with fallback chain Implement CompatibleProvider for OpenAI-compatible APIs Epic: M20 — Provider flexibility

1 participant