Skip to content

feat(ai): replace OpenWebUI provider with LiteLLM#45

Merged
dave6892 merged 1 commit into
mainfrom
feat/litellm-provider
Apr 19, 2026
Merged

feat(ai): replace OpenWebUI provider with LiteLLM#45
dave6892 merged 1 commit into
mainfrom
feat/litellm-provider

Conversation

@dave6892

@dave6892 dave6892 commented Apr 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Deprecates the OpenWebUI provider variant and replaces it with LiteLLM
  • LiteLLM proxy is fully OpenAI-compatible, so chat and model-listing use the standard /v1/chat/completions and /v1/models endpoints
  • Default base URL updated to http://localhost:4000 in the Settings UI
  • Existing configs with provider: openwebui fall back to Ollama on next load; users re-save via Settings

Changes

File Change
crates/types/src/config.rs OpenwebuiLitellm in AiProvider enum
crates/ai/src/stream.rs chat_url and list_models updated; list_models_openwebui replaced with list_models_litellm
apps/desktop/src-tauri/src/commands.rs save_ai_config / get_ai_config map "litellm"AiProvider::Litellm
apps/desktop/src/views/SettingsView.tsx Provider type, defaults, button array, and label updated to LiteLLM

Test plan

  • cargo build -p nichinichi-types -p nichinichi-ai -p nichinichi-cli passes
  • Start LiteLLM proxy on localhost:4000, select LiteLLM in Settings, fetch models list
  • Run nichinichi ask "test" with provider: litellm in ~/.nichinichi.yml
  • Verify Ollama provider still works unchanged

🤖 Generated with Claude Code

Deprecates the OpenWebUI provider and adds LiteLLM as the second
provider option alongside Ollama. LiteLLM is fully OpenAI-compatible,
so chat and model-listing both use the standard /v1/* endpoints.
Default base URL is http://localhost:4000.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dave6892 dave6892 self-assigned this Apr 19, 2026
@dave6892 dave6892 merged commit 376fdd3 into main Apr 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant