CodeReview/frontend
lintsinghua 22c528acf1 refactor(llm): consolidate LLM adapters with LiteLLM unified layer
- Replace individual adapter implementations (OpenAI, Claude, Gemini, DeepSeek, Qwen, Zhipu, Moonshot, Ollama) with unified LiteLLM adapter
- Keep native adapters for providers with special API formats (Baidu, MiniMax, Doubao)
- Update LLM factory to route requests through LiteLLM for supported providers
- Add test-llm endpoint to validate LLM connections with configurable timeout and token limits
- Add get-llm-providers endpoint to retrieve supported providers and their configurations
- Update config.py to ignore extra environment variables (VITE_* frontend variables)
- Refactor Baidu adapter to use new complete() method signature and improve error handling
- Update pyproject.toml dependencies to include litellm package
- Update env.example with new configuration options
- Simplify adapter initialization and reduce code duplication across multiple provider implementations
2025-11-28 16:41:39 +08:00
..
public refactor: 重构项目结构,将前端和后端代码分离到独立目录 2025-11-26 21:11:12 +08:00
src refactor(llm): consolidate LLM adapters with LiteLLM unified layer 2025-11-28 16:41:39 +08:00
Dockerfile feat: Refactor frontend layout with new sidebar and i18n, update backend LLM adapters, and adjust database models. 2025-11-27 18:01:57 +08:00
components.json refactor: 重构项目结构,将前端和后端代码分离到独立目录 2025-11-26 21:11:12 +08:00
index.html feat: update UI with new branding, logo, and modern terminal-inspired styling 2025-11-27 22:34:23 +08:00
package-lock.json feat: Refactor frontend layout with new sidebar and i18n, update backend LLM adapters, and adjust database models. 2025-11-27 18:01:57 +08:00
package.json feat: Refactor frontend layout with new sidebar and i18n, update backend LLM adapters, and adjust database models. 2025-11-27 18:01:57 +08:00
pnpm-lock.yaml refactor: 重构项目结构,将前端和后端代码分离到独立目录 2025-11-26 21:11:12 +08:00
postcss.config.js refactor: 重构项目结构,将前端和后端代码分离到独立目录 2025-11-26 21:11:12 +08:00
tailwind.config.js feat: update UI with new branding, logo, and modern terminal-inspired styling 2025-11-27 22:34:23 +08:00
tsconfig.app.json refactor: 重构项目结构,将前端和后端代码分离到独立目录 2025-11-26 21:11:12 +08:00
tsconfig.check.json refactor: 重构项目结构,将前端和后端代码分离到独立目录 2025-11-26 21:11:12 +08:00
tsconfig.json refactor: 重构项目结构,将前端和后端代码分离到独立目录 2025-11-26 21:11:12 +08:00
tsconfig.node.json refactor: 重构项目结构,将前端和后端代码分离到独立目录 2025-11-26 21:11:12 +08:00
vercel.json refactor: 重构项目结构,将前端和后端代码分离到独立目录 2025-11-26 21:11:12 +08:00
vite.config.ts refactor: 重构项目结构,将前端和后端代码分离到独立目录 2025-11-26 21:11:12 +08:00