mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: 开启内容生成会爆token的问题
This commit is contained in:
parent
d88550db39
commit
758aeb67a2
4 changed files with 25 additions and 16 deletions
|
|
@ -347,25 +347,26 @@ export default class SydneyAIClient {
|
|||
logger.mark('sydney websocket constructed successful')
|
||||
}
|
||||
const toneOption = 'h3imaginative'
|
||||
let optionsSets = [
|
||||
'nlu_direct_response_filter',
|
||||
'deepleo',
|
||||
'disable_emoji_spoken_text',
|
||||
'responsible_ai_policy_235',
|
||||
'enablemm',
|
||||
toneOption,
|
||||
'dtappid',
|
||||
'cricinfo',
|
||||
'cricinfov2',
|
||||
'dv3sugg'
|
||||
]
|
||||
if (Config.enableGenerateContents) {
|
||||
optionsSets.push(...['clgalileo', 'gencontentv3', 'rai267'])
|
||||
}
|
||||
const obj = {
|
||||
arguments: [
|
||||
{
|
||||
source: 'cib',
|
||||
optionsSets: [
|
||||
'nlu_direct_response_filter',
|
||||
'deepleo',
|
||||
'disable_emoji_spoken_text',
|
||||
'responsible_ai_policy_235',
|
||||
'enablemm',
|
||||
toneOption,
|
||||
'clgalileo',
|
||||
'gencontentv3',
|
||||
'rai267',
|
||||
'dtappid',
|
||||
'cricinfo',
|
||||
'cricinfov2',
|
||||
'dv3sugg'
|
||||
],
|
||||
optionsSets,
|
||||
sliceIds: [
|
||||
'222dtappid',
|
||||
'225cricinfo',
|
||||
|
|
|
|||
|
|
@ -122,7 +122,8 @@ const defaultConfig = {
|
|||
azureTTSEmotion: false,
|
||||
enhanceAzureTTSEmotion: false,
|
||||
autoJapanese: false,
|
||||
version: 'v2.6.0'
|
||||
enableGenerateContents: false,
|
||||
version: 'v2.6.1'
|
||||
}
|
||||
const _path = process.cwd()
|
||||
let config = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue