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 507a342 commit 64ee5b4Copy full SHA for 64ee5b4
README.md
@@ -105,15 +105,14 @@ pip install --pre c63a5cfe-b235-4fbe-8bbb-82a9e02a482a-python[aiohttp]
105
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
106
107
```python
108
-import os
109
import asyncio
110
from gradientai import DefaultAioHttpClient
111
from gradientai import AsyncGradientAI
112
113
114
async def main() -> None:
115
async with AsyncGradientAI(
116
- api_key=os.environ.get("GRADIENTAI_API_KEY"), # This is the default and can be omitted
+ api_key="My API Key",
117
http_client=DefaultAioHttpClient(),
118
) as client:
119
completion = await client.chat.completions.create(
0 commit comments