pull/3/head
Travis Fischer 2022-12-02 23:06:26 -06:00
rodzic 288509b615
commit 81d6529dcc
2 zmienionych plików z 12 dodań i 0 usunięć

Wyświetl plik

@ -7,6 +7,7 @@
"license": "MIT",
"type": "module",
"source": "./src/index.ts",
"types": "./build/index.d.ts",
"exports": {
"import": "./build/index.js",
"default": "./build/index.js",

Wyświetl plik

@ -6,6 +6,7 @@
- [Intro](#intro)
- [Auth](#auth)
- [Install](#install)
- [Usage](#usage)
- [Example](#example)
- [Docs](#docs)
@ -25,6 +26,16 @@ It uses headless Chromium via [Playwright](https://playwright.dev), so **you sti
Chromium is opened in non-headless mode by default, which is important because the first time you run `ChatGPTAPI.init()`, you'll need to log in manually. We launch Chromium with a persistent context, so you shouldn't need to keep re-logging in after the first time.
## Install
```bash
npm install --save chatgpt
# or
yarn add chatgpt
# or
pnpm add chatgpt
```
## Usage
```ts