kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
chore: docs
rodzic
294dd7eab0
commit
451878b237
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "chatgpt",
|
"name": "chatgpt",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "Node.js wrapper around ChatGPT. Uses headless Chrome as a temporary solution until the official API is released.",
|
"description": "Node.js wrapper around ChatGPT. Uses headless Chrome until the official API is released.",
|
||||||
"author": "Travis Fischer <travis@transitivebullsh.it>",
|
"author": "Travis Fischer <travis@transitivebullsh.it>",
|
||||||
"repository": "transitive-bullshit/chatgpt-api",
|
"repository": "transitive-bullshit/chatgpt-api",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -46,7 +46,6 @@
|
||||||
"husky": "^8.0.2",
|
"husky": "^8.0.2",
|
||||||
"lint-staged": "^13.0.3",
|
"lint-staged": "^13.0.3",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"openapi-types": "^12.0.2",
|
|
||||||
"ora": "^6.1.2",
|
"ora": "^6.1.2",
|
||||||
"prettier": "^2.8.0",
|
"prettier": "^2.8.0",
|
||||||
"tsup": "^6.5.0",
|
"tsup": "^6.5.0",
|
||||||
|
|
|
@ -5,7 +5,6 @@ specifiers:
|
||||||
'@types/node': ^18.11.9
|
'@types/node': ^18.11.9
|
||||||
del-cli: ^5.0.0
|
del-cli: ^5.0.0
|
||||||
delay: ^5.0.0
|
delay: ^5.0.0
|
||||||
dotenv-safe: ^8.2.0
|
|
||||||
html-to-md: npm:@fisch0920/html-to-md@^0.8.1
|
html-to-md: npm:@fisch0920/html-to-md@^0.8.1
|
||||||
husky: ^8.0.2
|
husky: ^8.0.2
|
||||||
joplin-turndown: ^4.0.30
|
joplin-turndown: ^4.0.30
|
||||||
|
@ -35,7 +34,6 @@ devDependencies:
|
||||||
'@types/node': 18.11.10
|
'@types/node': 18.11.10
|
||||||
del-cli: 5.0.0
|
del-cli: 5.0.0
|
||||||
delay: 5.0.0
|
delay: 5.0.0
|
||||||
dotenv-safe: 8.2.0
|
|
||||||
husky: 8.0.2
|
husky: 8.0.2
|
||||||
lint-staged: 13.0.4
|
lint-staged: 13.0.4
|
||||||
npm-run-all: 4.1.5
|
npm-run-all: 4.1.5
|
||||||
|
@ -1036,17 +1034,6 @@ packages:
|
||||||
domhandler: 5.0.3
|
domhandler: 5.0.3
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/dotenv-safe/8.2.0:
|
|
||||||
resolution: {integrity: sha512-uWwWWdUQkSs5a3mySDB22UtNwyEYi0JtEQu+vDzIqr9OjbDdC2Ip13PnSpi/fctqlYmzkxCeabiyCAOROuAIaA==}
|
|
||||||
dependencies:
|
|
||||||
dotenv: 8.6.0
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/dotenv/8.6.0:
|
|
||||||
resolution: {integrity: sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g==}
|
|
||||||
engines: {node: '>=10'}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/eastasianwidth/0.2.0:
|
/eastasianwidth/0.2.0:
|
||||||
resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
|
resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# ChatGPT API <!-- omit in toc -->
|
# ChatGPT API <!-- omit in toc -->
|
||||||
|
|
||||||
> Node.js wrapper around [ChatGPT](https://openai.com/blog/chatgpt/). Uses headless Chrome as a temporary solution until the official API is released.
|
> Node.js TS wrapper around [ChatGPT](https://openai.com/blog/chatgpt/). Uses headless Chrome until the official API is released.
|
||||||
|
|
||||||
[](https://www.npmjs.com/package/chatgpt) [](https://github.com/transitive-bullshit/chatgpt-api/actions/workflows/test.yml) [](https://github.com/transitive-bullshit/chatgpt-api/blob/main/license) [](https://prettier.io)
|
[](https://www.npmjs.com/package/chatgpt) [](https://github.com/transitive-bullshit/chatgpt-api/actions/workflows/test.yml) [](https://github.com/transitive-bullshit/chatgpt-api/blob/main/license) [](https://prettier.io)
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ See the [auto-generated docs](./docs/classes/ChatGPTAPI.md) for more info on met
|
||||||
|
|
||||||
## Related
|
## Related
|
||||||
|
|
||||||
- Inspired by the [Go module](https://github.com/danielgross/whatsapp-gpt) by [Daniel Gross](https://github.com/danielgross)
|
- Inspired by this [Go module](https://github.com/danielgross/whatsapp-gpt) by [Daniel Gross](https://github.com/danielgross)
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|
|
@ -34,12 +34,13 @@ async function main() {
|
||||||
// 'Write a TypeScript function for conway sort.'
|
// 'Write a TypeScript function for conway sort.'
|
||||||
'Write a python version of bubble sort. Do not include example usage.'
|
'Write a python version of bubble sort. Do not include example usage.'
|
||||||
)
|
)
|
||||||
|
|
||||||
// const prompts = await api.getPrompts()
|
// const prompts = await api.getPrompts()
|
||||||
// const messages = await api.getMessages()
|
// const messages = await api.getMessages()
|
||||||
// console.log('prompts', prompts)
|
// console.log('prompts', prompts)
|
||||||
// console.log('messages', messages)
|
// console.log('messages', messages)
|
||||||
|
|
||||||
// Wait forever; useful for debugging chromium session
|
// Wait forever; useful for debugging chromium sessions
|
||||||
// await new Promise(() => {})
|
// await new Promise(() => {})
|
||||||
|
|
||||||
await api.close()
|
await api.close()
|
||||||
|
|
Ładowanie…
Reference in New Issue