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 committed Dec 13, 2023
1 parent ab8b73b commit 4bb14cf
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 4bb14cf

Please sign in to comment.