diff --git a/README.md b/README.md index a00b401a8f587368cf7a19b4ecab253a4b04446d..9c3d95aec1320151ad2ff5ed0059f5406578bf0f 100644 --- a/README.md +++ b/README.md @@ -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***** ``` --- diff --git a/pom.xml b/pom.xml index 10292a5c968917fc0410966523268b6674b673b2..a40c3460a868a16ec16e6cea9f296e4972a8dd63 100644 --- a/pom.xml +++ b/pom.xml @@ -14,16 +14,16 @@ - MIT License - https://www.opensource.org/licenses/mit-license.php + Apache License + https://opensource.org/license/apache-2-0/ repo - Southeast - Southeast + Xiaofuge + Xiaofuge 184172133@qq.com https://github.com/fuzhengwei chatglm ai diff --git a/src/test/java/cn/bugstack/chatglm/test/ApiTest.java b/src/test/java/cn/bugstack/chatglm/test/ApiTest.java index ff7e8ed369404634e6b4ea9cbf72f44594618037..2c91cd3beab9d54cd270e3c8113b3c0249df22ee 100644 --- a/src/test/java/cn/bugstack/chatglm/test/ApiTest.java +++ b/src/test/java/cn/bugstack/chatglm/test/ApiTest.java @@ -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());