fix: api反代默认值报错的问题

This commit is contained in:
ikechan8370 2023-03-02 20:15:40 +08:00
parent f84663e2a9
commit 446de028ec
2 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ export default {
// *********************************************************************************************************************************** // ***********************************************************************************************************************************
apiKey: API_KEY, apiKey: API_KEY,
// 如果有openai api的加速反代可以写 // 如果有openai api的加速反代可以写
openAiBaseUrl: '', // openAiBaseUrl: null,
// 模型名称选填。如无特殊需求保持默认即可会使用chatgpt-api库提供的当前可用的最适合的默认值。保底可用的是 text-davinci-003。当发现新的可用的chatGPT模型会更新这里的值 // 模型名称选填。如无特殊需求保持默认即可会使用chatgpt-api库提供的当前可用的最适合的默认值。保底可用的是 text-davinci-003。当发现新的可用的chatGPT模型会更新这里的值
// 20230211 text-chat-davinci-002-sh-alpha-aoruigiofdj83 中午存活了几分钟 // 20230211 text-chat-davinci-002-sh-alpha-aoruigiofdj83 中午存活了几分钟
// model: '', // model: '',

View file

@ -14,7 +14,7 @@ const defaultConfig = {
cacheUrl: 'https://content.alcedogroup.com', cacheUrl: 'https://content.alcedogroup.com',
cacheEntry: false, cacheEntry: false,
apiKey: '', apiKey: '',
openAiBaseUrl: '', openAiBaseUrl: null,
drawCD: 30, drawCD: 30,
model: '', model: '',
temperature: 0.8, temperature: 0.8,
@ -34,7 +34,7 @@ const defaultConfig = {
debug: true, debug: true,
defaultTimeoutMs: 120000, defaultTimeoutMs: 120000,
chromeTimeoutMS: 120000, chromeTimeoutMS: 120000,
version: '2.0.7' version: '2.0.8'
} }
const _path = process.cwd() const _path = process.cwd()
let config = {} let config = {}