Learn how to use DashScope models in Agno.
qwen-plus
model is good for most use-cases.DASHSCOPE_API_KEY
environment variable. Get your key from here.
DashScope
with your Agent
:
Parameter | Type | Default | Description |
---|---|---|---|
id | str | "qwen-plus" | The specific model ID used for generating responses. |
name | str | "Qwen" | The name identifier for the DashScope agent. |
provider | str | "Dashscope" | The provider of the model. |
api_key | Optional[str] | - | The API key for authenticating requests to the DashScope service. Retrieved from the environment variable DASHSCOPE_API_KEY or QWEN_API_KEY . |
base_url | str | "https://dashscope-intl.aliyuncs.com/compatible-mode/v1" | The base URL for making API requests to the DashScope service. |
DashScope
also supports the parameters of OpenAI.