Skip to content

Commit

Permalink
docs: rename OPENAI_EMAIL and OPENAI_PASSWORD env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Dec 12, 2022
1 parent c257286 commit ef15db3
Show file tree
Hide file tree
Showing 9 changed files with 81 additions and 81 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# ChatGPT
# -----------------------------------------------------------------------------

EMAIL=
PASSWORD=
OPENAI_EMAIL=
OPENAI_PASSWORD=
4 changes: 2 additions & 2 deletions demos/demo-conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ dotenv.config()
* ```
*/
async function main() {
const email = process.env.EMAIL
const password = process.env.PASSWORD
const email = process.env.OPENAI_EMAIL
const password = process.env.OPENAI_PASSWORD

const authInfo = await getOpenAIAuth({
email,
Expand Down
4 changes: 2 additions & 2 deletions demos/demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ dotenv.config()
* ```
*/
async function main() {
const email = process.env.EMAIL
const password = process.env.PASSWORD
const email = process.env.OPENAI_EMAIL
const password = process.env.OPENAI_PASSWORD

const authInfo = await getOpenAIAuth({
email,
Expand Down
20 changes: 10 additions & 10 deletions docs/classes/ChatGPTAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ to obtain your `clearanceToken`.

#### Defined in

[src/chatgpt-api.ts:45](https://github.com/transitive-bullshit/chatgpt-api/blob/a48c177/src/chatgpt-api.ts#L45)
[src/chatgpt-api.ts:45](https://github.com/transitive-bullshit/chatgpt-api/blob/c257286/src/chatgpt-api.ts#L45)

## Accessors

Expand All @@ -68,7 +68,7 @@ Gets the current Cloudflare clearance token (`cf_clearance` cookie value).

#### Defined in

[src/chatgpt-api.ts:136](https://github.com/transitive-bullshit/chatgpt-api/blob/a48c177/src/chatgpt-api.ts#L136)
[src/chatgpt-api.ts:136](https://github.com/transitive-bullshit/chatgpt-api/blob/c257286/src/chatgpt-api.ts#L136)

___

Expand All @@ -84,7 +84,7 @@ Gets the current session token.

#### Defined in

[src/chatgpt-api.ts:131](https://github.com/transitive-bullshit/chatgpt-api/blob/a48c177/src/chatgpt-api.ts#L131)
[src/chatgpt-api.ts:131](https://github.com/transitive-bullshit/chatgpt-api/blob/c257286/src/chatgpt-api.ts#L131)

___

Expand All @@ -100,7 +100,7 @@ Gets the currently signed-in user, if authenticated, `null` otherwise.

#### Defined in

[src/chatgpt-api.ts:126](https://github.com/transitive-bullshit/chatgpt-api/blob/a48c177/src/chatgpt-api.ts#L126)
[src/chatgpt-api.ts:126](https://github.com/transitive-bullshit/chatgpt-api/blob/c257286/src/chatgpt-api.ts#L126)

___

Expand All @@ -116,7 +116,7 @@ Gets the current user agent.

#### Defined in

[src/chatgpt-api.ts:141](https://github.com/transitive-bullshit/chatgpt-api/blob/a48c177/src/chatgpt-api.ts#L141)
[src/chatgpt-api.ts:141](https://github.com/transitive-bullshit/chatgpt-api/blob/c257286/src/chatgpt-api.ts#L141)

## Methods

Expand All @@ -133,7 +133,7 @@ is still valid.

#### Defined in

[src/chatgpt-api.ts:319](https://github.com/transitive-bullshit/chatgpt-api/blob/a48c177/src/chatgpt-api.ts#L319)
[src/chatgpt-api.ts:319](https://github.com/transitive-bullshit/chatgpt-api/blob/c257286/src/chatgpt-api.ts#L319)

___

Expand All @@ -160,7 +160,7 @@ The new conversation instance

#### Defined in

[src/chatgpt-api.ts:425](https://github.com/transitive-bullshit/chatgpt-api/blob/a48c177/src/chatgpt-api.ts#L425)
[src/chatgpt-api.ts:425](https://github.com/transitive-bullshit/chatgpt-api/blob/c257286/src/chatgpt-api.ts#L425)

___

Expand All @@ -177,7 +177,7 @@ the token fails.

#### Defined in

[src/chatgpt-api.ts:306](https://github.com/transitive-bullshit/chatgpt-api/blob/a48c177/src/chatgpt-api.ts#L306)
[src/chatgpt-api.ts:306](https://github.com/transitive-bullshit/chatgpt-api/blob/c257286/src/chatgpt-api.ts#L306)

___

Expand All @@ -203,7 +203,7 @@ A valid access token

#### Defined in

[src/chatgpt-api.ts:333](https://github.com/transitive-bullshit/chatgpt-api/blob/a48c177/src/chatgpt-api.ts#L333)
[src/chatgpt-api.ts:333](https://github.com/transitive-bullshit/chatgpt-api/blob/c257286/src/chatgpt-api.ts#L333)

___

Expand Down Expand Up @@ -234,4 +234,4 @@ The response from ChatGPT

#### Defined in

[src/chatgpt-api.ts:166](https://github.com/transitive-bullshit/chatgpt-api/blob/a48c177/src/chatgpt-api.ts#L166)
[src/chatgpt-api.ts:166](https://github.com/transitive-bullshit/chatgpt-api/blob/c257286/src/chatgpt-api.ts#L166)
10 changes: 5 additions & 5 deletions docs/classes/ChatGPTConversation.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Creates a new conversation wrapper around the ChatGPT API.

#### Defined in

[src/chatgpt-conversation.ts:21](https://github.com/transitive-bullshit/chatgpt-api/blob/a48c177/src/chatgpt-conversation.ts#L21)
[src/chatgpt-conversation.ts:21](https://github.com/transitive-bullshit/chatgpt-api/blob/c257286/src/chatgpt-conversation.ts#L21)

## Properties

Expand All @@ -51,7 +51,7 @@ Creates a new conversation wrapper around the ChatGPT API.

#### Defined in

[src/chatgpt-conversation.ts:10](https://github.com/transitive-bullshit/chatgpt-api/blob/a48c177/src/chatgpt-conversation.ts#L10)
[src/chatgpt-conversation.ts:10](https://github.com/transitive-bullshit/chatgpt-api/blob/c257286/src/chatgpt-conversation.ts#L10)

___

Expand All @@ -61,7 +61,7 @@ ___

#### Defined in

[src/chatgpt-conversation.ts:11](https://github.com/transitive-bullshit/chatgpt-api/blob/a48c177/src/chatgpt-conversation.ts#L11)
[src/chatgpt-conversation.ts:11](https://github.com/transitive-bullshit/chatgpt-api/blob/c257286/src/chatgpt-conversation.ts#L11)

___

Expand All @@ -71,7 +71,7 @@ ___

#### Defined in

[src/chatgpt-conversation.ts:12](https://github.com/transitive-bullshit/chatgpt-api/blob/a48c177/src/chatgpt-conversation.ts#L12)
[src/chatgpt-conversation.ts:12](https://github.com/transitive-bullshit/chatgpt-api/blob/c257286/src/chatgpt-conversation.ts#L12)

## Methods

Expand Down Expand Up @@ -104,4 +104,4 @@ The response from ChatGPT

#### Defined in

[src/chatgpt-conversation.ts:48](https://github.com/transitive-bullshit/chatgpt-api/blob/a48c177/src/chatgpt-conversation.ts#L48)
[src/chatgpt-conversation.ts:48](https://github.com/transitive-bullshit/chatgpt-api/blob/c257286/src/chatgpt-conversation.ts#L48)
8 changes: 4 additions & 4 deletions docs/classes/ChatGPTError.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2022.error

#### Defined in

[src/types.ts:298](https://github.com/transitive-bullshit/chatgpt-api/blob/a48c177/src/types.ts#L298)
[src/types.ts:298](https://github.com/transitive-bullshit/chatgpt-api/blob/c257286/src/types.ts#L298)

___

Expand All @@ -76,7 +76,7 @@ ___

#### Defined in

[src/types.ts:297](https://github.com/transitive-bullshit/chatgpt-api/blob/a48c177/src/types.ts#L297)
[src/types.ts:297](https://github.com/transitive-bullshit/chatgpt-api/blob/c257286/src/types.ts#L297)

___

Expand All @@ -86,7 +86,7 @@ ___

#### Defined in

[src/types.ts:295](https://github.com/transitive-bullshit/chatgpt-api/blob/a48c177/src/types.ts#L295)
[src/types.ts:295](https://github.com/transitive-bullshit/chatgpt-api/blob/c257286/src/types.ts#L295)

___

Expand All @@ -96,4 +96,4 @@ ___

#### Defined in

[src/types.ts:296](https://github.com/transitive-bullshit/chatgpt-api/blob/a48c177/src/types.ts#L296)
[src/types.ts:296](https://github.com/transitive-bullshit/chatgpt-api/blob/c257286/src/types.ts#L296)
Loading

0 comments on commit ef15db3

Please sign in to comment.