mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-10-01 12:01:10 +08:00
improve chatgpt web mode compatibility
This commit is contained in:
1 parent
40d24e7069
commit
236a1cb706
1 file changed
+7
-1
@@ -111,7 +111,7 @@ export async function generateAnswersWithChatgptWebApi(port, question, session,
|
||||
},
|
||||
body: JSON.stringify({
|
||||
action: 'next',
|
||||
conversation_id: session.conversationId,
|
||||
conversation_id: session.conversationId || undefined,
|
||||
messages: [
|
||||
{
|
||||
id: session.messageId,
|
||||
@@ -124,6 +124,12 @@ export async function generateAnswersWithChatgptWebApi(port, question, session,
|
||||
},
|
||||
},
|
||||
],
|
||||
conversation_mode: {
|
||||
kind: 'primary_assistant',
|
||||
},
|
||||
force_paragen: false,
|
||||
force_rate_limit: false,
|
||||
suggestions: [],
|
||||
model: usedModel,
|
||||
parent_message_id: session.parentMessageId,
|
||||
timezone_offset_min: new Date().getTimezoneOffset(),
|
||||
|
||||
Reference in new issue
Block a user