Skip to content

Conversation

hedeqiang
Copy link
Contributor

💻 变更类型 | Change Type

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

🔀 变更说明 | Description of Change

新增魔塔服务商

📝 补充信息 | Additional Information

Copy link

vercel bot commented May 31, 2025

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

A member of the Team first needs to authorize it.

@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label May 31, 2025
@lobehubbot
Copy link
Member

👍 @hedeqiang

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.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

@dosubot dosubot bot added Model Provider 模型服务商 🌠 Feature Request New feature or request | 特性与建议 labels May 31, 2025
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 ModelScope provider integration to LobeChat, enabling access to Alibaba Cloud's AI models including DeepSeek and Qwen series.

  • Added comprehensive configuration for ModelScope in Dockerfiles with environment variables ENABLED_MODELSCOPE, MODELSCOPE_API_KEY, and MODELSCOPE_MODEL_LIST
  • Implemented OpenAI-compatible API client with model detection for function calling, vision, and reasoning capabilities in /src/libs/model-runtime/modelscope
  • Added detailed documentation in both English and Chinese covering setup, prerequisites (including required Alibaba Cloud account binding), and troubleshooting
  • Integrated 5 initial models: DeepSeek-V3-0324, DeepSeek-V3, DeepSeek-R1-0528, Qwen3-235B-A22B, and Qwen3-32B
  • Added proper type definitions and runtime mapping for ModelScope provider while maintaining consistent code patterns

💡 (2/5) Greptile learns from your feedback when you react with 👍/👎!

14 file(s) reviewed, 6 comment(s)
Edit PR Review Bot Settings | Greptile


const visionKeywords = ['qwen-vl', 'qwen2-vl', 'llava'];

const reasoningKeywords = ['qwq', 'deepseek-r1'];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: 'qwq' seems like a typo in reasoningKeywords array - this may not match any actual model IDs

Copy link

codecov bot commented May 31, 2025

Codecov Report

Attention: Patch coverage is 76.70455% with 41 lines in your changes missing coverage. Please review.

Project coverage is 88.37%. Comparing base (9f07e4c) to head (da93ca5).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/libs/model-runtime/modelscope/index.ts 18.00% 41 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8026      +/-   ##
==========================================
- Coverage   95.67%   88.37%   -7.30%     
==========================================
  Files          14      825     +811     
  Lines        2519    60594   +58075     
  Branches      244     5511    +5267     
==========================================
+ Hits         2410    53550   +51140     
- Misses        109     7044    +6935     
Flag Coverage Δ
app 88.37% <76.70%> (?)
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.

@arvinxx arvinxx changed the title ✨ feat: Support ModelScope ✨ feat: Support ModelScope Provider May 31, 2025
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels May 31, 2025
Copy link

vercel bot commented Jun 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lobe-chat-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 1, 2025 6:44am

@arvinxx arvinxx merged commit 7b91dfd into lobehub:main Jun 1, 2025
17 of 18 checks passed
@lobehubbot
Copy link
Member

❤️ Great PR @hedeqiang ❤️

The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world.
项目的成长离不开用户反馈和贡献,感谢您的贡献! 如果您对 LobeHub 开发者社区感兴趣,请加入我们的 discord,然后私信 @arvinxx@canisminor1990。他们会邀请您加入我们的私密开发者频道。我们将会讨论关于 Lobe Chat 的开发,分享和讨论全球范围内的 AI 消息。

@hedeqiang hedeqiang deleted the modelscope branch June 1, 2025 07:05
github-actions bot pushed a commit that referenced this pull request Jun 1, 2025
## [Version&nbsp;1.89.0](v1.88.23...v1.89.0)
<sup>Released on **2025-06-01**</sup>

#### ✨ Features

- **misc**:  Support ModelScope Provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**:  Support ModelScope Provider, closes [#8026](#8026) ([7b91dfd](7b91dfd))

</details>

<div align="right">

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

</div>
@lobehubbot
Copy link
Member

🎉 This PR is included in version 1.89.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit to jaworldwideorg/OneJA-Bot that referenced this pull request Jun 2, 2025
## [Version&nbsp;1.88.0](v1.87.2...v1.88.0)
<sup>Released on **2025-06-02**</sup>

#### ✨ Features

- **misc**:  Support ModelScope Provider, support protect page.

#### 🐛 Bug Fixes

- **misc**: Agent automatic completion meta not working error, 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**:  `+` in the welcome message can be clicked to create an assistant, Enable deploymentName for Aliyun Bailian, Enhanced reasoning_effort Slider Component, support `web_search` tool for MiniMax & Zhipu, support 01.ai proxy url, Update Hunyuan models & deepseek-r1-0528, use default deployment name when parseModelString doesn't contain deployment name.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**:  Support ModelScope Provider, closes [lobehub#8026](https://github.com/jaworldwideorg/OneJA-Bot/issues/8026) ([7b91dfd](7b91dfd))
* **misc**: Support protect page, closes [lobehub#8024](https://github.com/jaworldwideorg/OneJA-Bot/issues/8024) ([d61a9f5](d61a9f5))

#### What's fixed

* **misc**: Agent automatic completion meta not working error, closes [lobehub#8003](https://github.com/jaworldwideorg/OneJA-Bot/issues/8003) ([c5307bf](c5307bf))
* **misc**: Disable LaTeX and Mermaid rendering in SystemRoleContent to prevent lag caused by massive rendering tasks when switching topics, closes [lobehub#8034](https://github.com/jaworldwideorg/OneJA-Bot/issues/8034) ([5b42ee2](5b42ee2))
* **misc**: Fix DeepSeek new R1 Search error, closes [lobehub#8035](https://github.com/jaworldwideorg/OneJA-Bot/issues/8035) ([cf58628](cf58628))

#### Styles

* **misc**:  `+` in the welcome message can be clicked to create an assistant, closes [lobehub#7984](https://github.com/jaworldwideorg/OneJA-Bot/issues/7984) ([9f07e4c](9f07e4c))
* **misc**: Enable deploymentName for Aliyun Bailian, closes [lobehub#7576](https://github.com/jaworldwideorg/OneJA-Bot/issues/7576) ([169e598](169e598))
* **misc**: Enhanced reasoning_effort Slider Component, closes [lobehub#7998](https://github.com/jaworldwideorg/OneJA-Bot/issues/7998) ([750b26a](750b26a))
* **misc**: Support `web_search` tool for MiniMax & Zhipu, closes [lobehub#7980](https://github.com/jaworldwideorg/OneJA-Bot/issues/7980) ([28cdafb](28cdafb))
* **misc**: Support 01.ai proxy url, closes [lobehub#8025](https://github.com/jaworldwideorg/OneJA-Bot/issues/8025) ([e0442b8](e0442b8))
* **misc**: Update Hunyuan models & deepseek-r1-0528, closes [lobehub#7993](https://github.com/jaworldwideorg/OneJA-Bot/issues/7993) ([2eb198c](2eb198c))
* **misc**: Use default deployment name when parseModelString doesn't contain deployment name, closes [lobehub#7719](https://github.com/jaworldwideorg/OneJA-Bot/issues/7719) ([aef19f4](aef19f4))

</details>

<div align="right">

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

</div>
sxjeru pushed a commit to sxjeru/lobe-chat that referenced this pull request Jun 4, 2025
* feat: support modelscop

* feat: support modelscop

* style: update llm.ts

* style: update modelscope
sxjeru pushed a commit to sxjeru/lobe-chat that referenced this pull request Jun 4, 2025
## [Version&nbsp;1.89.0](lobehub/lobe-chat@v1.88.23...v1.89.0)
<sup>Released on **2025-06-01**</sup>

#### ✨ Features

- **misc**:  Support ModelScope Provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**:  Support ModelScope Provider, closes [lobehub#8026](lobehub#8026) ([7b91dfd](lobehub@7b91dfd))

</details>

<div align="right">

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

</div>
AirboZH pushed a commit to yuanze-dev/lobe-chat that referenced this pull request Jul 9, 2025
* feat: support modelscop

* feat: support modelscop

* style: update llm.ts

* style: update modelscope
AirboZH pushed a commit to yuanze-dev/lobe-chat that referenced this pull request Jul 9, 2025
## [Version&nbsp;1.89.0](lobehub/lobe-chat@v1.88.23...v1.89.0)
<sup>Released on **2025-06-01**</sup>

#### ✨ Features

- **misc**:  Support ModelScope Provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**:  Support ModelScope Provider, closes [lobehub#8026](lobehub#8026) ([7b91dfd](lobehub@7b91dfd))

</details>

<div align="right">

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

</div>
bbbugg pushed a commit to bbbugg/lobe-chat that referenced this pull request Aug 14, 2025
* feat: support modelscop

* feat: support modelscop

* style: update llm.ts

* style: update modelscope
bbbugg pushed a commit to bbbugg/lobe-chat that referenced this pull request Aug 14, 2025
## [Version&nbsp;1.89.0](lobehub/lobe-chat@v1.88.23...v1.89.0)
<sup>Released on **2025-06-01**</sup>

#### ✨ Features

- **misc**:  Support ModelScope Provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**:  Support ModelScope Provider, closes [lobehub#8026](lobehub#8026) ([6e2b50d](lobehub@6e2b50d))

</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

🌠 Feature Request New feature or request | 特性与建议 Model Provider 模型服务商 released size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants