Skip to content

Commit

Permalink
docs: move comments in example snippets (#1860)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Nov 12, 2024
1 parent db0aa22 commit 6c6dfb1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ import os
from openai import OpenAI

client = OpenAI(
# This is the default and can be omitted
api_key=os.environ.get("OPENAI_API_KEY"),
api_key=os.environ.get("OPENAI_API_KEY"), # This is the default and can be omitted
)

chat_completion = client.chat.completions.create(
Expand Down Expand Up @@ -153,8 +152,7 @@ import asyncio
from openai import AsyncOpenAI

client = AsyncOpenAI(
# This is the default and can be omitted
api_key=os.environ.get("OPENAI_API_KEY"),
api_key=os.environ.get("OPENAI_API_KEY"), # This is the default and can be omitted
)


Expand Down

0 comments on commit 6c6dfb1

Please sign in to comment.