Commit Graph
31 Commits
Author SHA1 Message Date
italic-jinxin 40a87d0e91 Merge branch 'staging' into feat/custom-llm-provider 2026-03-27 17:47:21 +08:00
italic-jinxin ca80be6d97 feat(web): add restart notice to LLM Provider settings 2026-03-27 17:46:08 +08:00
italic-jinxin 9e5d07c222 fix(settings): language switch not working for llm provider 2026-03-26 16:37:17 +08:00
italic-jinxin b8c3facfcd refactor(web): derive LLM Provider display from active Model Provider 2026-03-26 16:30:35 +08:00
jinxinandGitHub b9fa735158 Merge branch 'staging' into feat/custom-llm-provider 2026-03-26 15:51:52 +08:00
italic-jinxin cdfcf7174c fix: test_connection sends actual chat completion 2026-03-26 09:38:27 +08:00
italic-jinxin e7786fa3aa chore: resolve conflicts 2026-03-25 19:23:08 +08:00
italic-jinxin e8e0379e14 fix(security): harden LLM API key handling across settings and LLM endpoints 2026-03-25 19:04:03 +08:00
italic-jinxin 01d60fa281 fix(security): store LLM API keys in encrypted secrets store instead of plaintext 2026-03-25 18:08:09 +08:00
italic-jinxin 7584843a92 feat: extract BUILTIN_PROVIDERS into providers.js 2026-03-25 13:49:14 +08:00
italic-jinxin 08ad984701 fix: address review feedback on provider config priority 2026-03-24 20:52:12 +08:00
italic-jinxin f13226d011 chore: resolve conflicts 2026-03-24 20:23:20 +08:00
italic-jinxin f246cf6bf9 fix(llm): enforce db > env > default config priority for provider setting 2026-03-24 20:05:34 +08:00
italic-jinxin fbfe8cb70e feat(web): fall back to env vars for LLM provider config in UI 2026-03-24 18:15:40 +08:00
italic-jinxin fc9590dfd6 chore: resolve conflicts 2026-03-23 20:40:02 +08:00
italic-jinxin f1ebc06147 fix(llm): address security and correctness issues in custom LLM provider 2026-03-23 20:37:33 +08:00
italic-jinxin bc6494527b fix(llm): address security and correctness issues in custom LLM provider 2026-03-23 16:16:03 +08:00
italic-jinxin 06ea64eee9 chore: resolve conflicts 2026-03-23 12:28:51 +08:00
italic-jinxin e17edd1831 Merge branch 'staging' into feat/custom-llm-provider 2026-03-23 12:11:06 +08:00
italic-jinxin f9d7cc7c98 chore: resolve conflicts 2026-03-23 11:49:00 +08:00
italic-jinxin ee8de6d1a9 chore: resolve conflicts 2026-03-21 16:22:14 +08:00
italic-jinxin 32efb46f4f feat(web): merge Providers into Inference tab with UX improvements 2026-03-20 23:10:37 +08:00
italic-jinxin afecf626b4 chore: resolve conflicts 2026-03-20 16:06:28 +08:00
italic-jinxin f795324c80 chore: resolve conflicts 2026-03-20 13:29:17 +08:00
jinxinandGitHub 61a5b5553f Merge branch 'staging' into feat/custom-llm-provider 2026-03-19 22:29:09 +08:00
italic-jinxin 14349267f4 feat: move Config tab into Settings as Providers subtab 2026-03-19 15:48:28 +08:00
italic-jinxin e125024667 chore: resolve conflicts 2026-03-19 10:11:44 +08:00
italic-jinxin 275a6b1761 feat: add built-in provider API key and model configuration
- Add Configure button on built-in provider cards (openai, anthropic,
  gemini, ollama, etc.) to set API key and default model via web UI
- Store overrides as `llm_builtin_overrides` setting (per-provider
  key/model map) using the existing generic settings k/v API
- Add LlmBuiltinOverride struct in settings.rs; resolve in
  resolve_registry_provider() with priority:
  env var > selected_model > llm_builtin_overrides[id] > default
- Restore provider's configured model to selected_model on provider
  switch, so /model command always takes precedence at runtime
- Fix fetch-models button in built-in configure mode: use hardcoded
  base_url from BUILTIN_PROVIDERS instead of the hidden form field
- Add edit support for custom providers with pre-filled dialog
- Show current model on active and configured provider cards
- Convert add/edit provider form to a modal dialog
- Sync selected_model when editing or deleting an active custom provider
2026-03-18 20:47:26 +08:00
italic-jinxin 2339616637 feat: add test connection for custom LLM providers
- Add POST /api/llm/test_connection endpoint that validates
  connectivity and auth for OpenAI-compatible, Anthropic, and
  Ollama adapters (10s timeout, per-adapter request logic)
- Add "Test" button next to Save/Cancel in the add-provider form;
  result shown inline with green/red styling
- Hide delete button for the active provider instead of showing
  an error toast
- Sort the active provider to the top of the provider list
- Clear selected_model when switching providers to avoid
  model-not-supported errors on the new provider
- Add i18n keys for test/testing states (en + zh-CN)
2026-03-18 19:45:07 +08:00
italic-jinxin 3800a09613 feat: support custom LLM provider configuration via web UI
Users can now define custom LLM providers through the web UI and have
them take effect without modifying environment variables or config files.

- Add `CustomLlmProviderSettings` struct and `llm_custom_providers`
  field to `Settings` so custom provider definitions are persisted and
  loaded from the DB settings table
- Add `LlmConfig::resolve_custom_provider()` to build a
  `RegistryProviderConfig` from user-defined provider data (base_url,
  adapter, model, api_key)
- Flip resolution priority to `db > env > default` so active provider
  set through the UI takes precedence over deployment env vars
- Warn when a custom provider is missing base_url or model
- Add startup info logs for backend source and provider creation
- Add regression tests for custom provider resolution and DB priority
2026-03-17 22:27:26 +08:00
6b841bb817 feat(i18n): Add internationalization support with Chinese and English translations (#929)
* feat(i18n): Add internationalization support with Chinese and English translations
* fix(i18n): fix duplicate keys, broken placeholders, and dead overrides

---------

Co-authored-by: zwb1982 <[email protected]>
2026-03-11 22:34:13 +08:00