Skip to content

Commit 0627bc6

Browse files
feat: clean up environment call outs
1 parent f6faf28 commit 0627bc6

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
@@ -95,15 +95,14 @@ pip install groq[aiohttp]
9595
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
9696

9797
```python
98-
import os
9998
import asyncio
10099
from groq import DefaultAioHttpClient
101100
from groq import AsyncGroq
102101

103102

104103
async def main() -> None:
105104
async with AsyncGroq(
106-
api_key=os.environ.get("GROQ_API_KEY"), # This is the default and can be omitted
105+
api_key="My API Key",
107106
http_client=DefaultAioHttpClient(),
108107
) as client:
109108
chat_completion = await client.chat.completions.create(

0 commit comments

Comments
 (0)