Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Commit

Permalink
删除开发时输出的调试信息
Browse files Browse the repository at this point in the history
  • Loading branch information
NekoCurit committed Feb 1, 2024
1 parent 10fad13 commit 1da86b2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import com.alibaba.fastjson.JSONObject;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.javacord.api.entity.channel.Channel;
import org.javacord.api.entity.channel.ChannelCategory;
import org.javacord.api.entity.channel.ServerChannel;
import org.javacord.api.entity.channel.TextChannel;
Expand Down Expand Up @@ -203,7 +202,6 @@ public ResponseType handle(HandleType Handle) {
os.write(("data: " + json.toJSONString() + "\n\n").getBytes(StandardCharsets.UTF_8));
os.flush();
}
logger.info(SendMessage.size());
int retryInterval = 200; // 等待时间间隔 单位为毫秒
int maxRetries = 300; // 最大尝试次数
int attempt = 0; // 当前尝试次数
Expand All @@ -219,7 +217,6 @@ public ResponseType handle(HandleType Handle) {
}
attempt = 0;
}
logger.info(3);
Channel.sendMessage("<@" + ConfigManage.Configs.CozeBot_id + ">" + SendMessage.get(SendMessage.size() - 1)).join();
while (!Reply.Done) {
if (UsingStream) { // 启用流式返回
Expand All @@ -237,7 +234,6 @@ public ResponseType handle(HandleType Handle) {
LatestTextMessage = Reply.TextMessage;
update_choice.put("delta", update_delta);
json.put("choices", new JSONObject[]{update_choice});
logger.info(json.toJSONString());
// 负责发送 发送失败直接抛出异常关闭连接
os.write(("data: " + json.toJSONString() + "\n\n").getBytes(StandardCharsets.UTF_8));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import com.alibaba.fastjson.JSONObject;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.javacord.api.entity.channel.Channel;
import org.javacord.api.entity.channel.ChannelCategory;
import org.javacord.api.entity.channel.ServerChannel;
import org.javacord.api.entity.channel.TextChannel;
Expand Down

0 comments on commit 1da86b2

Please sign in to comment.