From 673fd88141dbe02b52633a0db0ad17673cda8933 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Mon, 17 Apr 2023 12:58:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=93=E6=8B=9B=E5=91=BCprompt?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E7=83=AD=E6=9B=B4=E6=96=B0=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/randomMessage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/randomMessage.js b/utils/randomMessage.js index 20841b8..b23d29b 100644 --- a/utils/randomMessage.js +++ b/utils/randomMessage.js @@ -23,9 +23,9 @@ const newFetch = (url, options = {}) => { return fetch(url, mergedOptions) } -const question = Config.helloPrompt || '写一段话让大家来找我聊天。类似于“有人找我聊天吗?"这种风格,轻松随意一点控制在20个字以内' export async function generateHello () { + let question = Config.helloPrompt || '写一段话让大家来找我聊天。类似于“有人找我聊天吗?"这种风格,轻松随意一点控制在20个字以内' let api = new ChatGPTAPI({ apiBaseUrl: Config.openAiBaseUrl, apiKey: Config.apiKey,