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 1c0b464 commit 87c2e97Copy full SHA for 87c2e97
README.md
@@ -160,15 +160,14 @@ pip install openai[aiohttp]
160
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
161
162
```python
163
-import os
164
import asyncio
165
from openai import DefaultAioHttpClient
166
from openai import AsyncOpenAI
167
168
169
async def main() -> None:
170
async with AsyncOpenAI(
171
- api_key=os.environ.get("OPENAI_API_KEY"), # This is the default and can be omitted
+ api_key="My API Key",
172
http_client=DefaultAioHttpClient(),
173
) as client:
174
chat_completion = await client.chat.completions.create(
0 commit comments