From b35a609b630ba72c7ee5197bde0b5b2e03caac8b Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Thu, 16 Mar 2023 20:12:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=80=82=E5=BA=94=E5=8C=85=E7=9A=84?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=81=BF=E5=85=8DAPI=E6=A8=A1=E5=BC=8F404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.example.json | 6 +++--- utils/config.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/config.example.json b/config/config.example.json index 0f41d42..c24b574 100644 --- a/config/config.example.json +++ b/config/config.example.json @@ -1,9 +1,9 @@ { "apiKey": "", "proxy": "", - "openAiBaseUrl": "https://api.openai.com", - "api": "https://chatgpt.duti.tech/api/conversation", - "apiBaseUrl": "https://chatgpt.duti.tech/api", + "openAiBaseUrl": "https://mondstadt.d201.eu.org/v1", + "api": "https://pimon.d201.cn/backend-api/conversation", + "apiBaseUrl": "https://pimon.d201.cn/backend-api", "promptPrefixOverride": "Your answer shouldn't be too verbose. If you are generating a list, do not have too many items. Keep the number of items short. Prefer to answer in Chinese.", "debug": false, "blockWords": ["屏蔽词1", "屏蔽词b"], diff --git a/utils/config.js b/utils/config.js index cf822dd..b49d403 100644 --- a/utils/config.js +++ b/utils/config.js @@ -3,9 +3,9 @@ import lodash from 'lodash' export const defaultChatGPTAPI = 'https://pimon.d201.cn/backend-api/conversation' export const officialChatGPTAPI = 'https://pimon.d201.cn/backend-api/conversation' // Reverse proxy of https://api.openai.com -export const defaultOpenAIReverseProxy = 'https://mondstadt.d201.eu.org' +export const defaultOpenAIReverseProxy = 'https://mondstadt.d201.eu.org/v1' // blocked in China Mainland -export const defaultOpenAIAPI = 'https://api.openai.com' +export const defaultOpenAIAPI = 'https://api.openai.com/v1' const defaultConfig = { blockWords: ['屏蔽词1', '屏蔽词b'], promptBlockWords: ['屏蔽词1', '屏蔽词b'],