kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
pull/3/head
rodzic
288509b615
commit
81d6529dcc
|
@ -7,6 +7,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"source": "./src/index.ts",
|
"source": "./src/index.ts",
|
||||||
|
"types": "./build/index.d.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
"import": "./build/index.js",
|
"import": "./build/index.js",
|
||||||
"default": "./build/index.js",
|
"default": "./build/index.js",
|
||||||
|
|
11
readme.md
11
readme.md
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
- [Intro](#intro)
|
- [Intro](#intro)
|
||||||
- [Auth](#auth)
|
- [Auth](#auth)
|
||||||
|
- [Install](#install)
|
||||||
- [Usage](#usage)
|
- [Usage](#usage)
|
||||||
- [Example](#example)
|
- [Example](#example)
|
||||||
- [Docs](#docs)
|
- [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.
|
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
|
## Usage
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
|
|
Ładowanie…
Reference in New Issue