feat: update beta

This commit is contained in:
ikechan8370 2023-02-20 13:23:13 +08:00
parent 049e71b7bb
commit 5399d57e38
22 changed files with 147 additions and 13 deletions

View file

@ -180,3 +180,10 @@ function getDOMException (errorMessage) {
? new Error(errorMessage)
: new DOMException(errorMessage)
}
export async function checkPnpm () {
let npm = 'npm'
let ret = await this.execSync('pnpm -v')
if (ret.stdout) npm = 'pnpm'
return npm
}

View file

@ -10,8 +10,8 @@ const defaultConfig = {
cacheUrl: 'https://content.alcedogroup.com',
apiKey: '',
model: '',
api: 'https://chatgpt.duti.tech/api/conversation',
apiBaseUrl: 'https://chatgpt.duti.tech',
api: 'https://gpt.pawan.krd/backend-api/conversation',
apiBaseUrl: 'https://chatgpt.duti.tech/api',
plus: false,
reverseProxy: 'https://chatgpt.pawan.krd/api/completions',
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.',

View file

@ -6,7 +6,7 @@ export async function getConversations (qq = '') {
if (!accessToken) {
throw new Error('未绑定ChatGPT AccessToken请使用#chatgpt设置token命令绑定token')
}
let response = await fetch(`${Config.apiBaseUrl}/api/conversations?offset=0&limit=20`, {
let response = await fetch(`${Config.apiBaseUrl}/conversations?offset=0&limit=20`, {
method: 'GET',
headers: {
'Content-Type': 'application/json',

View file