通义千问 Qwen 配置
官网与控制台
- 控制台与 Key:https://dashscope.aliyun.com/
- OpenAI 兼容说明:https://help.aliyun.com/zh/dashscope/developer-reference/openai-file-interface
OpenAICompatible 配置
python
from agently import Agently
Agently.set_settings("OpenAICompatible", {
"base_url": "https://dashscope.aliyuncs.com/compatible-mode/v1",
"api_key": "YOUR_DASHSCOPE_API_KEY",
"model": "qwen-turbo"
})