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

docs:更新文档

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