We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fe6bb6 commit 6654122Copy full SHA for 6654122
README.md
@@ -91,15 +91,14 @@ pip install openai[aiohttp]
91
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
92
93
```python
94
-import os
95
import asyncio
96
from openai import DefaultAioHttpClient
97
from openai import AsyncOpenAI
98
99
100
async def main() -> None:
101
async with AsyncOpenAI(
102
- api_key=os.environ.get("OPENAI_API_KEY"), # This is the default and can be omitted
+ api_key="My API Key",
103
http_client=DefaultAioHttpClient(),
104
) as client:
105
chat_completion = await client.chat.completions.create(
0 commit comments