Skip to content

Commit 64ee5b4

Browse files
feat: clean up environment call outs
1 parent 507a342 commit 64ee5b4

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
@@ -105,15 +105,14 @@ pip install --pre c63a5cfe-b235-4fbe-8bbb-82a9e02a482a-python[aiohttp]
105105
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
106106

107107
```python
108-
import os
109108
import asyncio
110109
from gradientai import DefaultAioHttpClient
111110
from gradientai import AsyncGradientAI
112111

113112

114113
async def main() -> None:
115114
async with AsyncGradientAI(
116-
api_key=os.environ.get("GRADIENTAI_API_KEY"), # This is the default and can be omitted
115+
api_key="My API Key",
117116
http_client=DefaultAioHttpClient(),
118117
) as client:
119118
completion = await client.chat.completions.create(

0 commit comments

Comments
 (0)