Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Chatgpt Puppeteer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Chatgpt Puppeteer
Commits
8ee5750d
Commit
8ee5750d
authored
Oct 31, 2023
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
0ad0e4ce
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
4 deletions
+36
-4
build/index.d.ts
build/index.d.ts
+8
-0
build/index.js
build/index.js
+8
-2
build/index.js.map
build/index.js.map
+1
-1
src/chatgpt-api-browser.ts
src/chatgpt-api-browser.ts
+7
-1
src/types.ts
src/types.ts
+12
-0
No files found.
build/index.d.ts
View file @
8ee5750d
...
...
@@ -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
=
{
/**
...
...
build/index.js
View file @
8ee5750d
...
...
@@ -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
;
...
...
build/index.js.map
View file @
8ee5750d
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/chatgpt-api-browser.ts
View file @
8ee5750d
...
...
@@ -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
)
{
...
...
src/types.ts
View file @
8ee5750d
...
...
@@ -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
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment