We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03b2f54 commit 47b051aCopy full SHA for 47b051a
README.md
@@ -140,13 +140,17 @@ pip install gradient[aiohttp]
140
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
141
142
```python
143
+import os
144
import asyncio
145
from gradient import DefaultAioHttpClient
146
from gradient import AsyncGradient
147
148
149
async def main() -> None:
150
async with AsyncGradient(
151
+ model_access_key=os.environ.get(
152
+ "GRADIENT_MODEL_ACCESS_KEY"
153
+ ), # This is the default and can be omitted
154
http_client=DefaultAioHttpClient(),
155
) as client:
156
completion = await client.chat.completions.create(
0 commit comments