diff --git a/package.json b/package.json index b282264..59fba1e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "chatgpt", "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 ", "repository": "transitive-bullshit/chatgpt-api", "license": "MIT", @@ -46,7 +46,6 @@ "husky": "^8.0.2", "lint-staged": "^13.0.3", "npm-run-all": "^4.1.5", - "openapi-types": "^12.0.2", "ora": "^6.1.2", "prettier": "^2.8.0", "tsup": "^6.5.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5fe799b..02c9aca 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,7 +5,6 @@ specifiers: '@types/node': ^18.11.9 del-cli: ^5.0.0 delay: ^5.0.0 - dotenv-safe: ^8.2.0 html-to-md: npm:@fisch0920/html-to-md@^0.8.1 husky: ^8.0.2 joplin-turndown: ^4.0.30 @@ -35,7 +34,6 @@ devDependencies: '@types/node': 18.11.10 del-cli: 5.0.0 delay: 5.0.0 - dotenv-safe: 8.2.0 husky: 8.0.2 lint-staged: 13.0.4 npm-run-all: 4.1.5 @@ -1036,17 +1034,6 @@ packages: domhandler: 5.0.3 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: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} dev: true diff --git a/readme.md b/readme.md index 357d3d5..170b7ee 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,6 @@ # ChatGPT API -> 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. [![NPM](https://img.shields.io/npm/v/chatgpt.svg)](https://www.npmjs.com/package/chatgpt) [![Build Status](https://github.com/transitive-bullshit/chatgpt-api/actions/workflows/test.yml/badge.svg)](https://github.com/transitive-bullshit/chatgpt-api/actions/workflows/test.yml) [![MIT License](https://img.shields.io/badge/license-MIT-blue)](https://github.com/transitive-bullshit/chatgpt-api/blob/main/license) [![Prettier Code Formatting](https://img.shields.io/badge/code_style-prettier-brightgreen.svg)](https://prettier.io) @@ -109,7 +109,7 @@ See the [auto-generated docs](./docs/classes/ChatGPTAPI.md) for more info on met ## 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 diff --git a/src/example.ts b/src/example.ts index c18d061..9343bed 100644 --- a/src/example.ts +++ b/src/example.ts @@ -34,12 +34,13 @@ async function main() { // 'Write a TypeScript function for conway sort.' 'Write a python version of bubble sort. Do not include example usage.' ) + // const prompts = await api.getPrompts() // const messages = await api.getMessages() // console.log('prompts', prompts) // console.log('messages', messages) - // Wait forever; useful for debugging chromium session + // Wait forever; useful for debugging chromium sessions // await new Promise(() => {}) await api.close()