We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8532ac5 commit be3611aCopy full SHA for be3611a
README.md
@@ -115,14 +115,15 @@ pip install openlayer[aiohttp]
115
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
116
117
```python
118
+import os
119
import asyncio
120
from openlayer import DefaultAioHttpClient
121
from openlayer import AsyncOpenlayer
122
123
124
async def main() -> None:
125
async with AsyncOpenlayer(
- api_key="My API Key",
126
+ api_key=os.environ.get("OPENLAYER_API_KEY"), # This is the default and can be omitted
127
http_client=DefaultAioHttpClient(),
128
) as client:
129
response = await client.inference_pipelines.data.stream(
0 commit comments