Skip to content

Commit 3a5c381

Browse files
docs: move comments in example snippets (#1860)
1 parent c837da8 commit 3a5c381

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ import os
2626
from openai import OpenAI
2727

2828
client = OpenAI(
29-
# This is the default and can be omitted
30-
api_key=os.environ.get("OPENAI_API_KEY"),
29+
api_key=os.environ.get("OPENAI_API_KEY"), # This is the default and can be omitted
3130
)
3231

3332
chat_completion = client.chat.completions.create(
@@ -56,8 +55,7 @@ import asyncio
5655
from openai import AsyncOpenAI
5756

5857
client = AsyncOpenAI(
59-
# This is the default and can be omitted
60-
api_key=os.environ.get("OPENAI_API_KEY"),
58+
api_key=os.environ.get("OPENAI_API_KEY"), # This is the default and can be omitted
6159
)
6260

6361

0 commit comments

Comments
 (0)