Skip to content

feat(provider): add deepseek-ai protocol support for modelscope.cn#1112

Closed
liugangjian wants to merge 0 commit intosipeed:mainfrom
liugangjian:fix/1103-modelscope-deepseek-protocol
Closed

feat(provider): add deepseek-ai protocol support for modelscope.cn#1112
liugangjian wants to merge 0 commit intosipeed:mainfrom
liugangjian:fix/1103-modelscope-deepseek-protocol

Conversation

@liugangjian
Copy link
Copy Markdown

Description

Fixes #1103

When configuring modelscope.cn with deepseek models like deepseek-ai/DeepSeek-V3.2, users encountered:

unknown protocol "deepseek-ai" in model "deepseek-ai/DeepSeek-V3.2"

Changes

  • Added "deepseek-ai/" prefix support in openrouter protocol detection
  • Added dedicated deepseek provider inference for models containing "deepseek", "deepseek/", or "deepseek-ai/"
  • Enhanced automatic provider selection to properly route deepseek-ai models to DeepSeek API when configured

Testing

  • Verified deepseek-ai/DeepSeek-V3.2 works with modelscope.cn
  • Confirmed backward compatibility with existing deepseek/ models
  • Tested both direct DeepSeek API and OpenRouter routing scenarios

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

AI Code Generation

  • 🤖 AI Assisted - Human designed the solution, AI helped implement it

@sipeed-bot sipeed-bot bot added type: bug Something isn't working domain: provider labels Mar 5, 2026
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


liugangjian seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

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

Labels

domain: provider type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]添加自定义模型时,modelscope.cn的api调用不可用。

2 participants