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
0e28a2b9
Commit
0e28a2b9
authored
Jan 22, 2023
by
Travis Fischer
Committed by
GitHub
Jan 22, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #276 from PawanOsman/main
parents
54a08a56
ba71198a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
src/chatgpt-api-browser.ts
src/chatgpt-api-browser.ts
+10
-2
No files found.
src/chatgpt-api-browser.ts
View file @
0e28a2b9
...
...
@@ -29,6 +29,8 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI {
protected
_email
:
string
protected
_password
:
string
protected
_isProAccount
:
boolean
protected
_executablePath
:
string
protected
_browser
:
Browser
protected
_page
:
Page
...
...
@@ -47,6 +49,9 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI {
email
:
string
password
:
string
/** @defaultValue `false` **/
isProAccount
:
boolean
/** @defaultValue `true` **/
markdown
?:
boolean
...
...
@@ -82,6 +87,7 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI {
const
{
email
,
password
,
isProAccount
=
false
,
markdown
=
true
,
debug
=
false
,
isGoogleLogin
=
false
,
...
...
@@ -96,7 +102,7 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI {
this
.
_email
=
email
this
.
_password
=
password
this
.
_isProAccount
=
isProAccount
this
.
_markdown
=
!!
markdown
this
.
_debug
=
!!
debug
this
.
_isGoogleLogin
=
!!
isGoogleLogin
...
...
@@ -456,7 +462,9 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI {
}
}
],
model
:
'
text-davinci-002-render
'
,
model
:
this
.
_isProAccount
?
'
text-davinci-002-render-paid
'
:
'
text-davinci-002-render
'
,
parent_message_id
:
parentMessageId
}
...
...
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