Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
陈老铁
chatbot-api
提交
ebe1b26e
chatbot-api
项目概览
陈老铁
/
chatbot-api
与 Fork 源项目一致
Fork自
fuzhengwei / chatbot-api
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
chatbot-api
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ebe1b26e
编写于
1月 25, 2023
作者:
小傅哥
⛹
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
小傅哥,feat:优化
上级
a8e8762f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
17 addition
and
5 deletion
+17
-5
chatbot-api-application/src/main/java/cn/bugstack/chatbot/api/application/job/ChatbotSchedule.java
...bugstack/chatbot/api/application/job/ChatbotSchedule.java
+1
-1
chatbot-api-interfaces/src/main/resources/application.yml
chatbot-api-interfaces/src/main/resources/application.yml
+2
-2
chatbot-api-interfaces/src/test/java/cn/bugstack/chatbot/api/test/SpringBootRunTest.java
.../java/cn/bugstack/chatbot/api/test/SpringBootRunTest.java
+1
-1
docs/md/其他.md
docs/md/其他.md
+12
-0
start.sh
start.sh
+1
-1
未找到文件。
chatbot-api-application/src/main/java/cn/bugstack/chatbot/api/application/job/ChatbotSchedule.java
浏览文件 @
ebe1b26e
...
...
@@ -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
);
...
...
chatbot-api-interfaces/src/main/resources/application.yml
浏览文件 @
ebe1b26e
...
...
@@ -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
chatbot-api-interfaces/src/test/java/cn/bugstack/chatbot/api/test/SpringBootRunTest.java
浏览文件 @
ebe1b26e
...
...
@@ -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
);
}
}
...
...
docs/md/其他.md
0 → 100644
浏览文件 @
ebe1b26e
欢迎加入《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
start.sh
浏览文件 @
ebe1b26e
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录