Commit 8ee5750d authored by nanahira's avatar nanahira

fix

parent 0ad0e4ce
......@@ -134,6 +134,14 @@ type ConversationJSONBody = {
*/
parent_message_id: string;
arkose_token?: string;
conversation_mode?: {
kind: string;
};
force_paragen?: boolean;
force_rate_limit?: boolean;
history_and_training_disabled?: boolean;
suggestions?: string[];
timezone_offset_min?: number;
};
type Prompt = {
/**
......
......@@ -785,6 +785,7 @@ var ChatGPTAPI = class extends AChatGPTAPI {
// src/chatgpt-api-browser.ts
import delay2 from "delay";
import { getToken } from "funcaptcha";
import { temporaryDirectory } from "tempy";
import { v4 as uuidv42 } from "uuid";
......@@ -1272,7 +1273,6 @@ async function waitForRecaptcha(page, opts = {}) {
}
// src/chatgpt-api-browser.ts
import { getToken } from "funcaptcha";
var CHAT_PAGE_URL = "https://chat.openai.com/chat";
var ChatGPTAPIBrowser = class extends AChatGPTAPI {
constructor(opts) {
......@@ -1575,7 +1575,13 @@ var ChatGPTAPIBrowser = class extends AChatGPTAPI {
}
],
model: model ? model : this._isProAccount ? "text-davinci-002-render-paid" : "text-davinci-002-render-sha",
parent_message_id: parentMessageId
parent_message_id: parentMessageId,
conversation_mode: { kind: "primary_assistant" },
force_paragen: false,
force_rate_limit: false,
history_and_training_disabled: false,
suggestions: [],
timezone_offset_min: -480
};
if (conversationId) {
body.conversation_id = conversationId;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -473,7 +473,13 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI {
: this._isProAccount
? 'text-davinci-002-render-paid'
: 'text-davinci-002-render-sha',
parent_message_id: parentMessageId
parent_message_id: parentMessageId,
conversation_mode: { kind: 'primary_assistant' },
force_paragen: false,
force_rate_limit: false,
history_and_training_disabled: false,
suggestions: [],
timezone_offset_min: -480
}
if (conversationId) {
......
......@@ -158,6 +158,18 @@ export type ConversationJSONBody = {
parent_message_id: string
arkose_token?: string
conversation_mode?: { kind: string }
force_paragen?: boolean
force_rate_limit?: boolean
history_and_training_disabled?: boolean
suggestions?: string[]
timezone_offset_min?: number
}
export type Prompt = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment