Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
猜猜我是谁 (GuessWhoAmI)
一个基于
hello_agents框架开发的交互式猜人物游戏。AI Agent 随机扮演一位历史人物、神话人物或网络红人,用户通过多轮对话提问来猜测其身份。项目预览
项目特色
项目结构
环境要求
快速开始
1. 安装依赖
cd /home/afei/hello-agents/Co-creation-projects/afei-GuessWhoAmI/backend pip install -r requirements.txt2. 配置环境变量
复制模板并填写配置:
编辑
backend/.env:3. 一键启动(推荐)
使用
restart.sh脚本同时启动前后端服务:cd /home/afei/hello-agents/Co-creation-projects/afei-GuessWhoAmI bash restart.sh脚本会自动:
启动成功后输出示例:
4. 访问地址
5. 手动启动(可选)
如需单独启动各服务:
API 接口
POST/api/game/startPOST/api/game/chatPOST/api/game/guessGET/api/game/hintPOST/api/game/endGET/api/game/status游戏规则
技术栈
后端
前端
AI / LLM
qwen-flash)配置说明
LLM_MODEL_IDqwen-flashLLM_BASE_URLLLM_TIMEOUT180TAVILY_API_KEYMAX_QUESTIONS10MAX_HINTS3日志
运行日志保存在
logs/目录:故障排除
LLM 调用失败
backend/.env中的LLM_API_KEY和LLM_BASE_URL每次生成同一个人物
Tavily 搜索不可用
backend/.env中的TAVILY_API_KEY是否正确填写端口被占用
restart.sh会自动清理占用端口的进程,重新运行脚本即可CORS 错误