-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
💄 style: Add Volcengine & OpenAI-like Provider (e.g. oneapi) model fetch support #7916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@sxjeru is attempting to deploy a commit to the LobeHub Team on Vercel. A member of the Team first needs to authorize it. |
|
👍 @sxjeru Thank you for raising your pull request and contributing to our Community |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
Added Volcengine model integration to LobeChat, implementing OpenAI-compatible model fetching and capability detection.
- Added
VolcengineModelCardinterface and model fetching implementation insrc/libs/model-runtime/volcengine/index.ts - Implemented capability detection for function calling, vision, and reasoning based on model ID keywords
- Added support for thinking mode in chat completion payload for vision-pro models
- Integrated with
LOBE_DEFAULT_MODEL_LISTto preserve known model metadata - Added debug mode toggle for chat completion via environment variable
DEBUG_VOLCENGINE_CHAT_COMPLETION
💡 (4/5) You can add custom instructions or style guidelines for the bot here!
1 file(s) reviewed, 3 comment(s)
Edit PR Review Bot Settings | Greptile
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7916 +/- ##
==========================================
- Coverage 95.67% 88.51% -7.16%
==========================================
Files 14 826 +812
Lines 2519 60650 +58131
Branches 244 4030 +3786
==========================================
+ Hits 2410 53684 +51274
- Misses 109 6966 +6857
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
ci 挂了,看下lint |
ci is dead, check out lint |
## [Version 1.90.0](lobehub/lobe-chat@v1.89.0...v1.90.0) <sup>Released on **2025-06-01**</sup> #### ✨ Features - **misc**: Support protect page. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Support protect page, closes [lobehub#8024](lobehub#8024) ([d61a9f5](lobehub@d61a9f5)) </details> <div align="right"> [](#readme-top) </div>
…event lag caused by massive rendering tasks when switching topics (lobehub#8034)
* fix DeepSeek R1 Search issue * fix tests
…oved compatibility across platforms on macOS (lobehub#7639)
…ntain deployment name (lobehub#7719) * ♻️ refactor: use default deployment name when parseModelString doesn't contain deployment name * ✅ test: add test case for parseModelString without deployment name * 添加测试用例 * 📝 docs: clarify default deployment name behavior in model list documentation * 📝 docs: update deployment name description for clarity in model list documentation * 📝 docs: update deployment name description for clarity in model list documentation
### [Version 1.90.1](lobehub/lobe-chat@v1.90.0...v1.90.1) <sup>Released on **2025-06-01**</sup> #### 🐛 Bug Fixes - **misc**: Disable LaTeX and Mermaid rendering in SystemRoleContent to prevent lag caused by massive rendering tasks when switching topics, fix DeepSeek new R1 Search error. #### 💄 Styles - **misc**: Use default deployment name when parseModelString doesn't contain deployment name. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Disable LaTeX and Mermaid rendering in SystemRoleContent to prevent lag caused by massive rendering tasks when switching topics, closes [lobehub#8034](lobehub#8034) ([5b42ee2](lobehub@5b42ee2)) * **misc**: Fix DeepSeek new R1 Search error, closes [lobehub#8035](lobehub#8035) ([cf58628](lobehub@cf58628)) #### Styles * **misc**: Use default deployment name when parseModelString doesn't contain deployment name, closes [lobehub#7719](lobehub#7719) ([aef19f4](lobehub@aef19f4)) </details> <div align="right"> [](#readme-top) </div>
* 💄 style: support web_search for MiniMax * ♻️ refactor: refactor zhipu `web_search` tools * 🐛 fix: fix live search citations * ♻️ refactor: refactor Minimax citations * 🐛 fix: fix ci error * 🐛 fix: fix ci error * 💄 style: support OpenAI Search model citations --------- Co-authored-by: Arvin Xu <arvinx@foxmail.com>
### [Version 1.90.2](lobehub/lobe-chat@v1.90.1...v1.90.2) <sup>Released on **2025-06-01**</sup> #### 💄 Styles - **misc**: Support `web_search` tool for MiniMax & Zhipu. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Styles * **misc**: Support `web_search` tool for MiniMax & Zhipu, closes [lobehub#7980](lobehub#7980) ([28cdafb](lobehub@28cdafb)) </details> <div align="right"> [](#readme-top) </div>
* Adds Qwen deployment name support Enables deploymentName flag for Qwen in global config Includes Qwen in chat service’s deployment-name providers * update * Update qwen.ts * Update qwen.ts * Update qwen.ts * Update xai.ts * Update qwen.ts --------- Co-authored-by: Arvin Xu <arvinx@foxmail.com>
### [Version 1.90.3](lobehub/lobe-chat@v1.90.2...v1.90.3) <sup>Released on **2025-06-01**</sup> #### 💄 Styles - **misc**: Enable deploymentName for Aliyun Bailian. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Styles * **misc**: Enable deploymentName for Aliyun Bailian, closes [lobehub#7576](lobehub#7576) ([169e598](lobehub@169e598)) </details> <div align="right"> [](#readme-top) </div>
* 📝 docs: add some more cursor rules * 📝 docs: fix greptile reported issue
* 📝 docs: update Qwen model providers in documentation * 📝 docs: update example for model list customization in documentation
* refactor model runtime createOpenAICompatibleRuntime * upgrade version and fix tests * fix tests * fix tests
### [Version 1.90.4](lobehub/lobe-chat@v1.90.3...v1.90.4) <sup>Released on **2025-06-02**</sup> #### ♻ Code Refactoring - **misc**: Rename the createOpenAICompatibleRuntime. #### 🐛 Bug Fixes - **misc**: Update the clerk middleware to support route protection. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring * **misc**: Rename the createOpenAICompatibleRuntime, closes [lobehub#8049](lobehub#8049) ([ee660d6](lobehub@ee660d6)) #### What's fixed * **misc**: Update the clerk middleware to support route protection, closes [lobehub#8044](lobehub#8044) ([309f973](lobehub@309f973)) </details> <div align="right"> [](#readme-top) </div>
…behub#8055) * migration: 添加移除 reasoning_effort 参数和删除 doubao 的迁移脚本 * Refactor code structure for improved readability and maintainability
* style: update modelscope * style: update modelscope
* ✨ feat: support tavily as search provider * ✨ feat: support tavily as crawl provider * 🐛 fix: fix category mapping * ✨ feat: support firecrwal as crawl provider * ✨ feat: support firecrawl as search provider * 🔨 chore: support firecrawl baseUrl for self-host * 🐛 fix: fix build error * ✨ feat: support jina as search provider * 🐛 fix: fix build error * ✨ feat: support BoChaAI & Exa as search & crawl provider * 🐛 fix: fix build error * 🔨 chore: rename to bocha * 🐛 fix: fix typo in bocha impl * ♻️ refactor: add `category` & `time_range` support for Exa --------- Co-authored-by: Arvin Xu <arvinx@foxmail.com>
## [Version 1.91.0](lobehub/lobe-chat@v1.90.4...v1.91.0) <sup>Released on **2025-06-03**</sup> #### ✨ Features - **misc**: Add more provider support for search & crawl. #### 💄 Styles - **misc**: Update modelscope models. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Add more provider support for search & crawl, closes [lobehub#8033](lobehub#8033) ([23fade3](lobehub@23fade3)) #### Styles * **misc**: Update modelscope models, closes [lobehub#8057](lobehub#8057) ([3e02c25](lobehub@3e02c25)) </details> <div align="right"> [](#readme-top) </div>

💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
存在重构,需要审查代码
重构模型tag解析部分,按关键词(如 doubao)交由不同提供商的解析模板解析模型 tags.
📝 补充信息 | Additional Information