We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7ae1fc commit 87aa378Copy full SHA for 87aa378
README.md
@@ -95,14 +95,15 @@ pip install anthropic[aiohttp]
95
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
96
97
```python
98
+import os
99
import asyncio
100
from anthropic import DefaultAioHttpClient
101
from anthropic import AsyncAnthropic
102
103
104
async def main() -> None:
105
async with AsyncAnthropic(
- api_key="my-anthropic-api-key",
106
+ api_key=os.environ.get("ANTHROPIC_API_KEY"), # This is the default and can be omitted
107
http_client=DefaultAioHttpClient(),
108
) as client:
109
message = await client.messages.create(
0 commit comments