Skip to content

Commit fc436af

Browse files
feat: clean up environment call outs
1 parent ffcc579 commit fc436af

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
@@ -122,15 +122,14 @@ pip install writer-sdk[aiohttp]
122122
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
123123

124124
```python
125-
import os
126125
import asyncio
127126
from writerai import DefaultAioHttpClient
128127
from writerai import AsyncWriter
129128

130129

131130
async def main() -> None:
132131
async with AsyncWriter(
133-
api_key=os.environ.get("WRITER_API_KEY"), # This is the default and can be omitted
132+
api_key="My API Key",
134133
http_client=DefaultAioHttpClient(),
135134
) as client:
136135
chat_completion = await client.chat.chat(

0 commit comments

Comments
 (0)