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
e3a96b68
Commit
e3a96b68
authored
Nov 09, 2023
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arkose token is gone
parent
035265c9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
13 deletions
+5
-13
build/index.js
build/index.js
+1
-11
build/index.js.map
build/index.js.map
+1
-1
src/chatgpt-api-browser.ts
src/chatgpt-api-browser.ts
+3
-1
No files found.
build/index.js
View file @
e3a96b68
...
...
@@ -1616,21 +1616,11 @@ var ChatGPTAPIBrowser = class extends AChatGPTAPI {
}
}
try
{
const
reqProm
=
this
.
_page
.
waitForResponse
(
(
res
)
=>
res
.
url
().
startsWith
(
"
https://tcr9i.chat.openai.com/fc/gt2/public_key/
"
),
{
timeout
:
1
e4
}
);
const
textarea
=
await
this
.
_page
.
waitForSelector
(
'
textarea[id="prompt-textarea"]
'
);
await
textarea
.
type
(
"
a
"
);
await
this
.
_page
.
keyboard
.
press
(
"
Backspace
"
);
const
req
=
await
reqProm
;
result
=
await
this
.
_page
.
evaluate
(
browserPostEventStream
,
url2
,
this
.
_accessToken
,
{
...
body
,
arkose_token
:
(
await
req
.
json
()).
token
},
{
...
body
,
arkose_token
:
null
},
timeoutMs
);
}
catch
(
err
)
{
...
...
build/index.js.map
View file @
e3a96b68
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 @
e3a96b68
...
...
@@ -557,6 +557,7 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI {
}, beforeUrl)
*/
/*
const reqProm = this._page.waitForResponse(
(res) =>
res
...
...
@@ -572,13 +573,14 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI {
await textarea.type('a')
await this._page.keyboard.press('Backspace')
const req = await reqProm
*/
// console.log('>>> EVALUATE', url, this._accessToken, body)
result
=
await
this
.
_page
.
evaluate
(
browserPostEventStream
,
url
,
this
.
_accessToken
,
{
...
body
,
arkose_token
:
(
await
req
.
json
()).
token
},
{
...
body
,
arkose_token
:
null
/*(await req.json()).token*/
},
timeoutMs
)
}
catch
(
err
)
{
...
...
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