Skip to content

Commit

Permalink
docs(readme): update example snippets (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored Nov 30, 2023
1 parent 735d9b8 commit 566d290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The full API of this library can be found in [api.md file](api.md) along with ma
import OpenAI from 'openai';

const openai = new OpenAI({
apiKey: 'My API Key', // defaults to process.env["OPENAI_API_KEY"]
apiKey: process.env['OPENAI_API_KEY'], // This is the default and can be omitted
});

async function main() {
Expand Down Expand Up @@ -81,7 +81,7 @@ This library includes TypeScript definitions for all request params and response
import OpenAI from 'openai';

const openai = new OpenAI({
apiKey: 'My API Key', // defaults to process.env["OPENAI_API_KEY"]
apiKey: process.env['OPENAI_API_KEY'], // This is the default and can be omitted
});

async function main() {
Expand Down

0 comments on commit 566d290

Please sign in to comment.