kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
pull/3/head
rodzic
288509b615
commit
81d6529dcc
|
@ -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",
|
||||
|
|
11
readme.md
11
readme.md
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue