Skip to content

Commit

Permalink
improve chatgpt web mode compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
josStorer committed Oct 31, 2023
1 parent 40d24e7 commit 236a1cb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/services/apis/chatgpt-web.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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(),
Expand Down

0 comments on commit 236a1cb

Please sign in to comment.