Skip to content

Commit 362cf74

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
docs: move comments in example snippets (#1860)
1 parent dec9d0c commit 362cf74

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
@@ -31,8 +31,7 @@ import os
3131
from openai import OpenAI
3232

3333
client = OpenAI(
34-
# This is the default and can be omitted
35-
api_key=os.environ.get("OPENAI_API_KEY"),
34+
api_key=os.environ.get("OPENAI_API_KEY"), # This is the default and can be omitted
3635
)
3736

3837
chat_completion = client.chat.completions.create(
@@ -153,8 +152,7 @@ import asyncio
153152
from openai import AsyncOpenAI
154153

155154
client = AsyncOpenAI(
156-
# This is the default and can be omitted
157-
api_key=os.environ.get("OPENAI_API_KEY"),
155+
api_key=os.environ.get("OPENAI_API_KEY"), # This is the default and can be omitted
158156
)
159157

160158

0 commit comments

Comments
 (0)