Skip to main content
agentscope-extensions-model-dashscope 接入阿里云 DashScope Qwen Model,包括多模态和推理能力的 Qwen 模型。

添加依赖

ModelRegistry

设置 DASHSCOPE_API_KEY 后,可以使用 dashscope:<model>,也可以使用 Qwen 短名:

显式 builder

需要 DashScope 专属配置时使用 builder,例如 endpoint type、thinking、search、encryption:

Spring Boot

Spring Boot 应用可以使用 DashScope starter:
完整 builder 选项、formatter、credential 和 registry context 细节见 模型