Commit 6c6dfb19
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
)