feat: 适配copilot pro账户的gpt4-turbo选项

This commit is contained in:
ikechan8370 2024-01-16 20:32:22 +08:00
parent 3709166b2d
commit 8bdf9a3b6d
5 changed files with 60 additions and 32 deletions

View file

@ -383,6 +383,9 @@ export default class SydneyAIClient {
if (!Config.sydneyEnableSearch || toSummaryFileContent?.content) {
optionsSets.push(...['nosearchall'])
}
if (Config.sydneyGPT4Turbo) {
optionsSets.push('gpt4tmnc')
}
let maxConv = Config.maxNumUserMessagesInConversation
const currentDate = moment().format('YYYY-MM-DDTHH:mm:ssZ')
const imageDate = await this.kblobImage(opts.imageUrl)
@ -482,6 +485,7 @@ export default class SydneyAIClient {
// }
]
}
if (encryptedconversationsignature) {
delete argument0.conversationSignature
}