qwen-plusmodel is good for most use-cases.
Authentication
Set yourDASHSCOPE_API_KEY environment variable. Get your key from here.
Example
UseDashScope with your Agent:
View more examples here.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
id | str | "qwen-plus" | The id of the Qwen model to use |
name | str | "Qwen" | The name of the model |
provider | str | "Dashscope" | The provider of the model |
api_key | Optional[str] | None | The API key for DashScope (defaults to DASHSCOPE_API_KEY env var) |
base_url | str | "https://dashscope-intl.aliyuncs.com/compatible-mode/v1" | The base URL for the DashScope API |
enable_thinking | bool | False | Enable thinking process for reasoning models |
include_thoughts | Optional[bool] | None | Include thinking process in response (alternative parameter) |
thinking_budget | Optional[int] | None | Budget for thinking tokens in reasoning models |
DashScope extends the OpenAI-compatible interface and supports most parameters from the OpenAI model.