mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: 兼容性问题
This commit is contained in:
parent
2c9008ea56
commit
63edc9403c
2 changed files with 4 additions and 3 deletions
|
|
@ -358,7 +358,8 @@ export default class SydneyAIClient {
|
||||||
logger.mark('sydney websocket constructed successful')
|
logger.mark('sydney websocket constructed successful')
|
||||||
}
|
}
|
||||||
let tone = Config.toneStyle || 'Creative'
|
let tone = Config.toneStyle || 'Creative'
|
||||||
if (tone.toLowerCase() === 'sydney') {
|
// 兼容老版本
|
||||||
|
if (tone.toLowerCase() === 'sydney' || tone.toLowerCase() === 'custom') {
|
||||||
Config.toneStyle = 'Creative'
|
Config.toneStyle = 'Creative'
|
||||||
}
|
}
|
||||||
const isCreative = tone.toLowerCase().includes('creative')
|
const isCreative = tone.toLowerCase().includes('creative')
|
||||||
|
|
@ -408,7 +409,7 @@ export default class SydneyAIClient {
|
||||||
invocationId = 2
|
invocationId = 2
|
||||||
}
|
}
|
||||||
if (Config.sydneyGPT4Turbo) {
|
if (Config.sydneyGPT4Turbo) {
|
||||||
tone = 'Creative'
|
// tone = 'Creative'
|
||||||
// optionsSets.push('gpt4tmnc')
|
// optionsSets.push('gpt4tmnc')
|
||||||
invocationId = 1
|
invocationId = 1
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -175,7 +175,7 @@ const defaultConfig = {
|
||||||
// origin: https://generativelanguage.googleapis.com
|
// origin: https://generativelanguage.googleapis.com
|
||||||
geminiBaseUrl: 'https://gemini.ikechan8370.com',
|
geminiBaseUrl: 'https://gemini.ikechan8370.com',
|
||||||
chatglmRefreshToken: '',
|
chatglmRefreshToken: '',
|
||||||
version: 'v2.7.9'
|
version: 'v2.7.10'
|
||||||
}
|
}
|
||||||
const _path = process.cwd()
|
const _path = process.cwd()
|
||||||
let config = {}
|
let config = {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue