Skip to content

Commit 6654122

Browse files
feat: clean up environment call outs
1 parent 1fe6bb6 commit 6654122

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,14 @@ pip install openai[aiohttp]
9191
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
9292

9393
```python
94-
import os
9594
import asyncio
9695
from openai import DefaultAioHttpClient
9796
from openai import AsyncOpenAI
9897

9998

10099
async def main() -> None:
101100
async with AsyncOpenAI(
102-
api_key=os.environ.get("OPENAI_API_KEY"), # This is the default and can be omitted
101+
api_key="My API Key",
103102
http_client=DefaultAioHttpClient(),
104103
) as client:
105104
chat_completion = await client.chat.completions.create(

0 commit comments

Comments
 (0)