[问题/Issue] 章节6.3:AgentScope三国狼人杀案例:dashscope SDK接口下线,案例无法直接运行
Author: lucasTan-16Created Sep 19, 2026Updated Sep 19, 2026
Labelsdocumentation
1. 遇到问题的章节 / Affected Chapter
Chapter6.4
2. 问题类型 / Issue Type
依赖问题 / Dependency Issue
3. 具体问题描述 / Problem Description
问题描述
第六章 AgentScope 三国狼人杀案例(code/C6/AgentScopeWerewolf),示例代码使用 type="dashscope",依赖阿里云dashscope sdk。
目前dashscope原生接口逐步下线,直接按照README执行会调用失败,新手无法跑通案例。
4. 问题重现材料 / Reproduction Materials
复现步骤
- 按照README执行
pip install agentscope dashscope pydantic - 设置环境变量
DASHSCOPE_API_KEY - 运行
python main_cn.py - 请求模型接口报错,游戏无法启动。
期望行为
案例可以不依赖dashscope sdk;README提供OpenAI兼容模式配置(DeepSeek / 阿里云百炼兼容接口),让学习者可以直接跑通。
实际行为
dashscope接口下线,直接运行案例会调用失败。
建议修复方向
- 文档与示例将
type="dashscope"修改为通用type="openai"配置; - README补充
.env示例,支持DeepSeek、阿里云百炼OpenAI兼容端点; - 提示用户可以卸载dashscope包。
环境信息
- 仓库main分支
- agentscope 最新版本
- OS: Windows/Linux/macOS
5. 补充信息 / Additional Information
No response
确认事项 / Verification
- 我已阅读过相关章节的文档 / I have read the relevant chapter documentation
- 我已搜索过现有的Issues,确认此问题未被报告 / I have searched existing Issues and confirmed this hasn't been reported
- 我已尝试过基本的故障排除(如重启、重新安装依赖等) / I have tried basic troubleshooting (restart, reinstall dependencies, etc.)
Source: datawhalechina/hello-agents