Skip to content

Commit 1e03cb6

Browse files
feat: clean up environment call outs
1 parent e287360 commit 1e03cb6

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
@@ -101,15 +101,14 @@ pip install patronus-api[aiohttp]
101101
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
102102

103103
```python
104-
import os
105104
import asyncio
106105
from patronus_api import DefaultAioHttpClient
107106
from patronus_api import AsyncPatronusAPI
108107

109108

110109
async def main() -> None:
111110
async with AsyncPatronusAPI(
112-
api_key=os.environ.get("PATRONUS_API_KEY"), # This is the default and can be omitted
111+
api_key="My API Key",
113112
http_client=DefaultAioHttpClient(),
114113
) as client:
115114
response = await client.evaluations.evaluate(

0 commit comments

Comments
 (0)