提交 ebe1b26e 编写于 作者: 小傅哥's avatar 小傅哥

小傅哥,feat:优化

上级 a8e8762f
......@@ -66,7 +66,7 @@ public class ChatbotSchedule {
}
// 2. AI 回答
Topics topic = topics.get(0);
Topics topic = topics.get(topics.size() - 1);
String answer = openAI.doChatGPT(topic.getQuestion().getText().trim());
// 3. 问题回复
boolean status = zsxqApi.answer(groupId, cookie, topic.getTopic_id(), answer, false);
......
......@@ -3,5 +3,5 @@ server:
chatbot-api:
groupId: 28885518425541 # 知识星球ID
cookie: # 知识星球个人cookie信息
openAiKey: # 自行申请 https://beta.openai.com/overview 或者联系小傅哥 fustack 付费申请【购买虚拟号码等需要支付】。
\ No newline at end of file
cookie: # 知识星球个人cookie信息
openAiKey: # 自行申请 https://beta.openai.com/overview 或者联系小傅哥 fustack 付费申请【购买虚拟号码等需要支付】。
\ No newline at end of file
......@@ -51,7 +51,7 @@ public class SpringBootRunTest {
logger.info("topicId:{} text:{}", topicId, text);
// 回答问题
zsxqApi.answer(groupId, cookie, topicId, text, false);
zsxqApi.answer(groupId, cookie, topicId, openAI.doChatGPT(text), false);
}
}
......
欢迎加入《ChatGPT AI 问答助手》开源免费项目的学习,你会在这次实战开发中,可以了解 ChatGTP AI 的使用,掌握 SpringBoot DDD 工程创建、DDD领域服务设计、爬虫接口、镜像打包、容器化部署等内容。非常具有学习价值。
项目源码:
- Github:https://github.com/fuzhengwei/chatbot-api
- Gitcode:https://gitcode.net/fuzhengwei/chatbot-api
讨论社区:https://wx.zsxq.com/dweb2/index/group/28885518425541 - 这个就是《ChatGPT AI 问答助手》的项目体现,你可以对它在手机端进行提问。
项目交流:添加小傅哥微信【fustack】备注【问答助手学习加群】
另外,关注小傅哥公众号【bugstack虫洞栈】回复【程序员数学】可以再送你一本关于程序员开发代码所需的数学知识,如:“为什么不能用斐波那契散列,做数据库路由算法?”、“素数用途 - RSA 加密算法解析”等。
\ No newline at end of file
docker run -p 8090:8090 --name chatbot-api -d chatbot-api:1.0
\ No newline at end of file
docker run -e PARAMS=" --chatbot-api.groupId=你的星球ID --chatbot-api.openAiKey=自行申请 --chatbot-api.cookie=登录cookie信息" -p 8090:8090 --name chatbot-api -d chatbot-api:1.0
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册