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'],