Skip to content

Commit 57e6088

Browse files
feat: clean up environment call outs
1 parent f8aaafa commit 57e6088

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
@@ -115,15 +115,14 @@ pip install --pre openlayer[aiohttp]
115115
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
116116

117117
```python
118-
import os
119118
import asyncio
120119
from openlayer import DefaultAioHttpClient
121120
from openlayer import AsyncOpenlayer
122121

123122

124123
async def main() -> None:
125124
async with AsyncOpenlayer(
126-
api_key=os.environ.get("OPENLAYER_API_KEY"), # This is the default and can be omitted
125+
api_key="My API Key",
127126
http_client=DefaultAioHttpClient(),
128127
) as client:
129128
response = await client.inference_pipelines.data.stream(

0 commit comments

Comments
 (0)