mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: 修改默认baseurl
This commit is contained in:
parent
ec74999df8
commit
2a7464ad24
2 changed files with 4 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import fs from 'fs'
|
||||
import lodash from 'lodash'
|
||||
export const defaultChatGPTAPI = 'https://apps.openai.com/api/conversation'
|
||||
export const defaultChatGPTAPI = 'https://pimon.d201.cn/backend-api/conversation'
|
||||
const defaultConfig = {
|
||||
blockWords: ['屏蔽词1', '屏蔽词b'],
|
||||
promptBlockWords: ['屏蔽词1', '屏蔽词b'],
|
||||
|
|
@ -29,7 +29,7 @@ const defaultConfig = {
|
|||
sydneyReverseProxy: 'https://666102.201666.xyz',
|
||||
sydneyForceUseReverse: false,
|
||||
api: defaultChatGPTAPI,
|
||||
apiBaseUrl: 'https://apps.openai.com/api',
|
||||
apiBaseUrl: 'https://pimon.d201.cn/backend-api',
|
||||
apiForceUseReverse: false,
|
||||
plus: false,
|
||||
promptPrefixOverride: 'Your answer shouldn\'t be too verbose. Prefer to answer in Chinese.',
|
||||
|
|
|
|||
|
|
@ -80,7 +80,8 @@ export class OfficialChatGPTClient {
|
|||
'x-openai-assistant-app-id': '',
|
||||
authorization: `Bearer ${this._accessToken}`,
|
||||
'content-type': 'application/json',
|
||||
referer: 'https://chat.openai.com/chat'
|
||||
referer: 'https://chat.openai.com/chat',
|
||||
library: 'chatgpt-plugin'
|
||||
},
|
||||
referrer: 'https://chat.openai.com/chat'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue