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

docs:更新文档

上级 28a28522
...@@ -204,7 +204,7 @@ chatglm: ...@@ -204,7 +204,7 @@ chatglm:
# 官网地址 # 官网地址
api-host: https://open.bigmodel.cn/ api-host: https://open.bigmodel.cn/
# 官网申请 https://open.bigmodel.cn/usercenter/apikeys # 官网申请 https://open.bigmodel.cn/usercenter/apikeys
api-key: 4e087e4135306ef4a676f0cce3cee560.sgP2DUs***** api-secret-key: 4e087e4135306ef4a676f0cce3cee560.sgP2DUs*****
``` ```
--- ---
......
...@@ -14,16 +14,16 @@ ...@@ -14,16 +14,16 @@
<licenses> <licenses>
<license> <license>
<name>MIT License</name> <name>Apache License</name>
<url>https://www.opensource.org/licenses/mit-license.php</url> <url>https://opensource.org/license/apache-2-0/</url>
<distribution>repo</distribution> <distribution>repo</distribution>
</license> </license>
</licenses> </licenses>
<developers> <developers>
<developer> <developer>
<id>Southeast</id> <id>Xiaofuge</id>
<name>Southeast</name> <name>Xiaofuge</name>
<email>184172133@qq.com</email> <email>184172133@qq.com</email>
<url>https://github.com/fuzhengwei</url> <url>https://github.com/fuzhengwei</url>
<organization>chatglm ai</organization> <organization>chatglm ai</organization>
......
...@@ -78,6 +78,7 @@ public class ApiTest { ...@@ -78,6 +78,7 @@ public class ApiTest {
public void onClosed(EventSource eventSource) { public void onClosed(EventSource eventSource) {
log.info("对话完成"); log.info("对话完成");
} }
}); });
// 等待 // 等待
...@@ -89,7 +90,7 @@ public class ApiTest { ...@@ -89,7 +90,7 @@ public class ApiTest {
// 1. 配置文件 // 1. 配置文件
Configuration configuration = new Configuration(); Configuration configuration = new Configuration();
configuration.setApiHost("https://open.bigmodel.cn/"); configuration.setApiHost("https://open.bigmodel.cn/");
configuration.setApiSecretKey("4e087e4135306ef4a676f0cce3cee560.sgP2DUs******"); configuration.setApiSecretKey("4e087e4135306ef4a676f0cce3cee560.sgP2DUsWEVPxk0UI");
// 2. 获取Token // 2. 获取Token
String token = BearerTokenUtils.getToken(configuration.getApiKey(), configuration.getApiSecret()); String token = BearerTokenUtils.getToken(configuration.getApiKey(), configuration.getApiSecret());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册