mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +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 fs from 'fs'
|
||||||
import lodash from 'lodash'
|
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 = {
|
const defaultConfig = {
|
||||||
blockWords: ['屏蔽词1', '屏蔽词b'],
|
blockWords: ['屏蔽词1', '屏蔽词b'],
|
||||||
promptBlockWords: ['屏蔽词1', '屏蔽词b'],
|
promptBlockWords: ['屏蔽词1', '屏蔽词b'],
|
||||||
|
|
@ -29,7 +29,7 @@ const defaultConfig = {
|
||||||
sydneyReverseProxy: 'https://666102.201666.xyz',
|
sydneyReverseProxy: 'https://666102.201666.xyz',
|
||||||
sydneyForceUseReverse: false,
|
sydneyForceUseReverse: false,
|
||||||
api: defaultChatGPTAPI,
|
api: defaultChatGPTAPI,
|
||||||
apiBaseUrl: 'https://apps.openai.com/api',
|
apiBaseUrl: 'https://pimon.d201.cn/backend-api',
|
||||||
apiForceUseReverse: false,
|
apiForceUseReverse: false,
|
||||||
plus: false,
|
plus: false,
|
||||||
promptPrefixOverride: 'Your answer shouldn\'t be too verbose. Prefer to answer in Chinese.',
|
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': '',
|
'x-openai-assistant-app-id': '',
|
||||||
authorization: `Bearer ${this._accessToken}`,
|
authorization: `Bearer ${this._accessToken}`,
|
||||||
'content-type': 'application/json',
|
'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'
|
referrer: 'https://chat.openai.com/chat'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue