litellm - 💡(How to fix) Fix [Feature]: Add Huawei Cloud ModelArts MaaS as a new LLM provider" [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#27860Fetched 2026-05-14 03:30:04
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
1
Author
Participants
Timeline (top)
labeled ×3subscribed ×1
RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

The Feature

The Feature

Add support for Huawei Cloud ModelArts MaaS (Model as a Service) as a new LLM provider in LiteLLM.

Huawei Cloud MaaS exposes an OpenAI-compatible chat completions endpoint, so integration is pretty straightforward:

  • Default endpoint: https://api-ap-southeast-1.modelarts-maas.com/openai/v1/chat/completions
  • Auth: Bearer token via Authorization header
  • Docs: Huawei MaaS docs

Models available

ModelContextReasoningTool Calling
DeepSeek-V332K
DeepSeek-V4-Pro1M
DeepSeek-V4-Flash1M
deepseek-v3.1-terminus32K
deepseek-v3.232K
deepseek-r1-25052832K
DeepSeek-V3-32K/64K/128K32K–128K
DeepSeek-R1-32K/64K/128K32K–128K
DeepSeek-R1-distil-Qwen-32B32K
DeepSeek-R1-distill-LLama-70B/8B32K
Qwen3-235B-A22B32K
Qwen3-32B, Qwen3-30B-A3B, Qwen3-14B, Qwen3-8B32K
Qwen2.5-72B32K
Qwen2.5-VL-32B32K👁️ Vision
QWQ-32B32K
glm-5, glm-5.132K

Motivation

Huawei Cloud is a pretty big deal in Asia-Pacific and enterprise settings. ModelArts MaaS gives you access to solid models like DeepSeek, Qwen3, and GLM at decent prices. A bunch of LiteLLM users working in regions where Huawei Cloud is popular (AP-Southeast, China, etc.) can't use these models through LiteLLM right now.

Since the API is OpenAI-compatible, the integration follows the same pattern as existing providers like OVHCloud and DashScope, so the implementation stays minimal and easy to maintain.

What part of LiteLLM is this about?

SDK (the litellm Python package)

Implementation scope

  • litellm/llms/huawei_cloud/chat/transformation.pyHuaweiCloudChatConfig extending OpenAIGPTConfig
  • litellm/llms/huawei_cloud/utils.pyHuaweiCloudException
  • Registration in types/utils.py (LlmProviders enum), constants.py, __init__.py, main.py, utils.py, _lazy_imports_registry.py, get_llm_provider_logic.py
  • 28 models added to model_prices_and_context_window.json with accurate pricing and capability flags
  • UI: provider_info_helpers.tsx updated

Usage (after integration)

import litellm

response = litellm.completion(
    model="huawei_cloud/DeepSeek-V3",
    messages=[{"role": "user", "content": "Hello!"}],
    api_key="<HUAWEI_CLOUD_API_KEY>",
)

### Motivation, pitch

Huawei Cloud ModelArts MaaS is a widely used LLM provider in the Asia-Pacific region and enterprise environments. The platform exposes state-of-the-art models (DeepSeek, Qwen3, GLM) via an OpenAI-compatible API with competitive pricing.

Currently, LiteLLM users operating in regions where Huawei Cloud is available (AP-Southeast, China, etc.) cannot use these models through the library. The integration is straightforward since it follows the same pattern as providers like OVHCloud and Dashscope (OpenAI-compatible), keeping the code minimal and maintainable.

Use case
Organizations already using Huawei Cloud as their infrastructure provider who need a unified interface for multiple LLM providers via LiteLLM.

### What part of LiteLLM is this about?

SDK (litellm Python package)

### LiteLLM is hiring a founding backend engineer, are you interested in joining us and shipping to all our users?

No

### Twitter / LinkedIn details

https://www.linkedin.com/in/milton-neto-46aa51a9/

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

litellm - 💡(How to fix) Fix [Feature]: Add Huawei Cloud ModelArts MaaS as a new LLM provider" [1 participants]