Commit 6c6dfb19

stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
2024-11-12 06:39:39
docs: move comments in example snippets (#1860)
1 parent db0aa22
Changed files (1)
README.md
@@ -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(
@@ -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
 )