The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
docs: add API base URLs for Dashscope (International and China/Beijing)
shivamd4aa41daf6e5
diff --git a/docs/my-website/docs/providers/dashscope.md b/docs/my-website/docs/providers/dashscope.mdindex 565776d6c4c..52bfbd989f8 100644--- a/docs/my-website/docs/providers/dashscope.md+++ b/docs/my-website/docs/providers/dashscope.md@@ -1,7 +1,7 @@-# Dashscope (Qwen API)+# Dashscope API (Qwen models)https://dashscope.console.aliyun.com/-**We support ALL Qwen models, just set `dashscope/` as a prefix when sending completion requests**+**We support ALL Qwen models (Alibaba Cloud), just set `dashscope/` as a prefix when sending completion requests**## API Key```python@@ -9,6 +9,26 @@ https://dashscope.console.aliyun.com/os.environ['DASHSCOPE_API_KEY']```+## API Base+You can optionally specify the API base URL depending on your region:++| Region | API Base |+|--------|----------|+| **International** | `https://dashscope-intl.aliyuncs.com/compatible-mode/v1` |+| **China/Beijing** | `https://dashscope.aliyuncs.com/compatible-mode/v1` |++```python+# Set via environment variable+os.environ['DASHSCOPE_API_BASE'] = "https://dashscope-intl.aliyuncs.com/compatible-mode/v1"++# Or pass directly in the completion call+response = completion(+ model="dashscope/qwen-turbo",+ messages=[{"role": "user", "content": "hello"}],+ api_base="https://dashscope-intl.aliyuncs.com/compatible-mode/v1"+)+```+## Sample Usage```pythonfrom litellm import completion