Skip to content

Conversation

@sxjeru
Copy link
Contributor

@sxjeru sxjeru commented May 21, 2025

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • 📝 docs
  • 🔨 chore

🔀 变更说明 | Description of Change

存在重构,需要审查代码

重构模型tag解析部分,按关键词(如 doubao)交由不同提供商的解析模板解析模型 tags.

image

📝 补充信息 | Additional Information

@vercel
Copy link

vercel bot commented May 21, 2025

@sxjeru is attempting to deploy a commit to the LobeHub Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label May 21, 2025
@sxjeru sxjeru changed the title 💄 style: AddVolcengine model fetch support 💄 style: Add Volcengine model fetch support May 21, 2025
@lobehubbot
Copy link
Member

👍 @sxjeru

Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

Copy link
Contributor

@greptile-apps greptile-apps bot left a 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 VolcengineModelCard interface and model fetching implementation in src/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_LIST to 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
Copy link

codecov bot commented May 22, 2025

Codecov Report

Attention: Patch coverage is 84.00000% with 36 lines in your changes missing coverage. Please review.

Project coverage is 88.51%. Comparing base (9f07e4c) to head (b18726b).
Report is 20 commits behind head on main.

Files with missing lines Patch % Lines
src/libs/model-runtime/google/index.ts 0.00% 23 Missing ⚠️
src/libs/model-runtime/volcengine/index.ts 20.00% 4 Missing ⚠️
src/libs/model-runtime/zhipu/index.ts 0.00% 4 Missing ⚠️
src/libs/model-runtime/nvidia/index.ts 0.00% 1 Missing ⚠️
src/libs/model-runtime/openrouter/index.ts 97.29% 1 Missing ⚠️
src/libs/model-runtime/qwen/index.ts 0.00% 1 Missing ⚠️
src/libs/model-runtime/siliconcloud/index.ts 0.00% 1 Missing ⚠️
src/libs/model-runtime/zeroone/index.ts 0.00% 1 Missing ⚠️
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     
Flag Coverage Δ
app 88.51% <84.00%> (?)
server 95.67% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sxjeru sxjeru changed the title 💄 style: Add Volcengine model fetch support 💄 style: Add Volcengine & OpenAI-like Provider (e.g. oneapi) model fetch support May 23, 2025
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels May 23, 2025
@sxjeru
Copy link
Contributor Author

sxjeru commented May 23, 2025

初步测试可用。

image

@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels May 27, 2025
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels May 27, 2025
@arvinxx
Copy link
Member

arvinxx commented Jun 1, 2025

ci 挂了,看下lint

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


ci is dead, check out lint

semantic-release-bot and others added 26 commits June 4, 2025 10:07
## [Version&nbsp;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">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
…event lag caused by massive rendering tasks when switching topics (lobehub#8034)
* fix DeepSeek R1 Search issue

* fix tests
…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&nbsp;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">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#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&nbsp;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">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#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&nbsp;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">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#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&nbsp;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">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#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&nbsp;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">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants