Skip to content

Commit 442b9fd

Browse files
chore(docs): use environment variables for authentication in code snippets
1 parent 37b9f74 commit 442b9fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,15 @@ pip install supermemory[aiohttp]
8383
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
8484

8585
```python
86+
import os
8687
import asyncio
8788
from supermemory import DefaultAioHttpClient
8889
from supermemory import AsyncSupermemory
8990

9091

9192
async def main() -> None:
9293
async with AsyncSupermemory(
93-
api_key="My API Key",
94+
api_key=os.environ.get("SUPERMEMORY_API_KEY"), # This is the default and can be omitted
9495
http_client=DefaultAioHttpClient(),
9596
) as client:
9697
response = await client.search.documents(

0 commit comments

Comments
 (0)