From 8e1f1ba12a59aa9eb9d1dd1918b3e65b6b5aadd2 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Mon, 20 Mar 2023 00:40:47 +0800 Subject: [PATCH] fix: temerature cannot larger than 1 --- utils/chatglm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/chatglm.js b/utils/chatglm.js index 29979df..bd01942 100644 --- a/utils/chatglm.js +++ b/utils/chatglm.js @@ -31,7 +31,7 @@ export default class ChatGLMClient { conversationId = uuidv4(), messageId = uuidv4(), parentMessageId, - temperature = Config.temperature + temperature = Math.max(Config.temperature, 1) } = opts await this.initCache() let url = Config.chatglmBaseUrl + '/api/chat'