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
be046679
Commit
be046679
authored
Dec 12, 2022
by
Travis Fischer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: update readme status
parent
62bdbd8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
readme.md
readme.md
+11
-5
No files found.
readme.md
View file @
be046679
...
...
@@ -72,12 +72,12 @@ npm install chatgpt
import
{
ChatGPTAPI
}
from
'
chatgpt
'
async
function
example
()
{
// sessionToken is required; see below for details
const
api
=
new
ChatGPTAPI
({
sessionToken
:
process
.
env
.
SESSION_TOKEN
sessionToken
:
process
.
env
.
SESSION_TOKEN
,
clearanceToken
:
process
.
env
.
CLEARANCE_TOKEN
,
userAgent
:
'
TODO
'
})
// ensure the API is properly authenticated
await
api
.
ensureAuth
()
// send a message and wait for the response
...
...
@@ -95,6 +95,8 @@ ChatGPT responses are formatted as markdown by default. If you want to work with
```
ts
const
api
=
new
ChatGPTAPI
({
sessionToken
:
process
.
env
.
SESSION_TOKEN
,
clearanceToken
:
process
.
env
.
CLEARANCE_TOKEN
,
userAgent
:
'
TODO
'
,
markdown
:
false
})
```
...
...
@@ -103,7 +105,9 @@ If you want to automatically track the conversation, you can use `ChatGPTAPI.get
```
ts
const
api
=
new
ChatGPTAPI
({
sessionToken
:
process
.
env
.
SESSION_TOKEN
sessionToken
:
process
.
env
.
SESSION_TOKEN
,
clearanceToken
:
process
.
env
.
CLEARANCE_TOKEN
,
userAgent
:
'
TODO
'
})
const
conversation
=
api
.
getConversation
()
...
...
@@ -140,7 +144,9 @@ async function example() {
const
{
ChatGPTAPI
}
=
await
import
(
'
chatgpt
'
)
const
api
=
new
ChatGPTAPI
({
sessionToken
:
process
.
env
.
SESSION_TOKEN
sessionToken
:
process
.
env
.
SESSION_TOKEN
,
clearanceToken
:
process
.
env
.
CLEARANCE_TOKEN
,
userAgent
:
'
TODO
'
})
await
api
.
ensureAuth
()
...
...
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