Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
probably2023
chatbot-api
提交
3bad0cdb
chatbot-api
项目概览
probably2023
/
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,体验更适合开发者的 AI 搜索 >>
提交
3bad0cdb
编写于
2月 08, 2023
作者:
小傅哥
⛹
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
小傅哥,feat:gpt-2 java 模型
上级
eeacd02b
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
23 addition
and
8 deletion
+23
-8
chatbot-api-domain/src/main/java/cn/bugstack/chatbot/api/domain/zsxq/service/ZsxqApi.java
.../cn/bugstack/chatbot/api/domain/zsxq/service/ZsxqApi.java
+1
-0
chatbot-api-interfaces/pom.xml
chatbot-api-interfaces/pom.xml
+4
-0
chatbot-api-interfaces/src/test/java/cn/bugstack/chatbot/api/test/ApiTest.java
...s/src/test/java/cn/bugstack/chatbot/api/test/ApiTest.java
+7
-2
docs/md/其他.md
docs/md/其他.md
+6
-6
docs/ppt/ChatGPT AI 问答助手.pptx
docs/ppt/ChatGPT AI 问答助手.pptx
+0
-0
pom.xml
pom.xml
+5
-0
未找到文件。
chatbot-api-domain/src/main/java/cn/bugstack/chatbot/api/domain/zsxq/service/ZsxqApi.java
浏览文件 @
3bad0cdb
...
...
@@ -41,6 +41,7 @@ public class ZsxqApi implements IZsxqApi {
get
.
addHeader
(
"cookie"
,
cookie
);
get
.
addHeader
(
"Content-Type"
,
"application/json;charset=utf8"
);
get
.
addHeader
(
"user-agent"
,
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36"
);
CloseableHttpResponse
response
=
httpClient
.
execute
(
get
);
if
(
response
.
getStatusLine
().
getStatusCode
()
==
HttpStatus
.
SC_OK
)
{
...
...
chatbot-api-interfaces/pom.xml
浏览文件 @
3bad0cdb
...
...
@@ -74,6 +74,10 @@
<groupId>
cn.hutool
</groupId>
<artifactId>
hutool-all
</artifactId>
</dependency>
<!-- <dependency>
<groupId>com.simiacryptus</groupId>
<artifactId>tf-gpt-2</artifactId>
</dependency>-->
<dependency>
<groupId>
cn.bugstack.ai
</groupId>
...
...
chatbot-api-interfaces/src/test/java/cn/bugstack/chatbot/api/test/ApiTest.java
浏览文件 @
3bad0cdb
...
...
@@ -23,6 +23,11 @@ import java.util.Base64;
*/
public
class
ApiTest
{
public
static
void
main
(
String
[]
args
)
{
TextGenerator
textGenerator
=
GPT2Util
.
get345M
();
System
.
out
.
println
(
textGenerator
.
generateText
(
500
));
}
@Test
public
void
base64
(){
String
cronExpression
=
new
String
(
Base64
.
getDecoder
().
decode
(
"MC81MCAqICogKiAqID8="
),
StandardCharsets
.
UTF_8
);
...
...
@@ -33,9 +38,9 @@ public class ApiTest {
public
void
query_unanswered_questions
()
throws
IOException
{
CloseableHttpClient
httpClient
=
HttpClientBuilder
.
create
().
build
();
HttpGet
get
=
new
HttpGet
(
"https://api.zsxq.com/v2/groups/
48411118851818
/topics?scope=unanswered_questions&count=20"
);
HttpGet
get
=
new
HttpGet
(
"https://api.zsxq.com/v2/groups/
28885518425541
/topics?scope=unanswered_questions&count=20"
);
get
.
addHeader
(
"cookie"
,
"
知识星球个人cookie信息
"
);
get
.
addHeader
(
"cookie"
,
"
zsxq_access_token=77D0F49F-1B2; abtest_env=product; zsxqsessionid=5673f4269d07
"
);
get
.
addHeader
(
"Content-Type"
,
"application/json;charset=utf8"
);
CloseableHttpResponse
response
=
httpClient
.
execute
(
get
);
...
...
docs/md/其他.md
浏览文件 @
3bad0cdb
欢迎加入《ChatGPT AI 问答助手》开源免费项目的学习,你会在这次实战开发中,可以了解 ChatGTP AI 的使用,掌握 SpringBoot DDD 工程创建、DDD领域服务设计、爬虫接口、镜像打包、容器化部署等内容。非常具有学习价值。
[脱单doge]
欢迎加入《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 问答助手》的项目体现,你可以对它在手机端进行提问。
[哦呼]
加入体验:https://wx.zsxq.com/dweb2/index/group/28885518425541 - 这个就是《ChatGPT AI 问答助手》的项目体现,你可以对它在手机端进行提问。
项目交流:添加小傅哥微信【fustack】备注【问答助手学习加群】
[辣眼睛]
项目交流:添加小傅哥微信【fustack】备注【问答助手学习加群】
其他项目:https://www.bilibili.com/video/BV1KG411T7DG https://www.bilibili.com/video/BV1nY4y1B7eT
\ No newline at end of file
[点赞]其他项目:https://www.bilibili.com/video/BV1KG411T7DG https://www.bilibili.com/video/BV1nY4y1B7eT
\ No newline at end of file
docs/ppt/ChatGPT AI 问答助手.pptx
浏览文件 @
3bad0cdb
无法预览此类型文件
pom.xml
浏览文件 @
3bad0cdb
...
...
@@ -87,6 +87,11 @@
<artifactId>
hutool-all
</artifactId>
<version>
5.8.10
</version>
</dependency>
<dependency>
<groupId>
com.simiacryptus
</groupId>
<artifactId>
tf-gpt-2
</artifactId>
<version>
1.7.1
</version>
</dependency>
</dependencies>
</dependencyManagement>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录