From 446de028ec752975cb9cb912356e5558a0dd0a79 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Thu, 2 Mar 2023 20:15:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20api=E5=8F=8D=E4=BB=A3=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.example.js | 2 +- utils/config.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/config.example.js b/config/config.example.js index 8e5e377..45ed293 100644 --- a/config/config.example.js +++ b/config/config.example.js @@ -37,7 +37,7 @@ export default { // *********************************************************************************************************************************** apiKey: API_KEY, // 如果有openai api的加速反代可以写 - openAiBaseUrl: '', + // openAiBaseUrl: null, // 模型名称,选填。如无特殊需求保持默认即可,会使用chatgpt-api库提供的当前可用的最适合的默认值。保底可用的是 text-davinci-003。当发现新的可用的chatGPT模型会更新这里的值 // 20230211: text-chat-davinci-002-sh-alpha-aoruigiofdj83 中午存活了几分钟 // model: '', diff --git a/utils/config.js b/utils/config.js index 6a31761..156a646 100644 --- a/utils/config.js +++ b/utils/config.js @@ -14,7 +14,7 @@ const defaultConfig = { cacheUrl: 'https://content.alcedogroup.com', cacheEntry: false, apiKey: '', - openAiBaseUrl: '', + openAiBaseUrl: null, drawCD: 30, model: '', temperature: 0.8, @@ -34,7 +34,7 @@ const defaultConfig = { debug: true, defaultTimeoutMs: 120000, chromeTimeoutMS: 120000, - version: '2.0.7' + version: '2.0.8' } const _path = process.cwd() let config = {}