File tree Expand file tree Collapse file tree 9 files changed +189
-163
lines changed
Expand file tree Collapse file tree 9 files changed +189
-163
lines changed Original file line number Diff line number Diff line change 11{
2- "." : " 0.37.0 "
2+ "." : " 0.37.1 "
33}
Original file line number Diff line number Diff line change 11configured_endpoints : 17
2- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/groqcloud%2Fgroqcloud-aa20a6b53361210f495bb7c44a6edc36f6a59f7c434d79b660d433d7cb419e54 .yml
2+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/groqcloud%2Fgroqcloud-72c846893a3d08d716638abd70d621c0ffc6c4b3aa9f5b8b06dde07c68fa529b .yml
33openapi_spec_hash : 7d29da2abb6833f7a891a53f49449122
44config_hash : 4719968e58eab04c8641284bcf18ef5d
Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 0.37.1 (2025-12-04)
4+
5+ Full Changelog: [ v0.37.0...v0.37.1] ( https://github.com/groq/groq-python/compare/v0.37.0...v0.37.1 )
6+
7+ ### Bug Fixes
8+
9+ * consume stream to prevent hanging ([ #260 ] ( https://github.com/groq/groq-python/issues/260 ) ) ([ 42fcb07] ( https://github.com/groq/groq-python/commit/42fcb07bf0ce1f9910650410574e93ce05590260 ) )
10+
11+
12+ ### Chores
13+
14+ * ** docs:** use environment variables for authentication in code snippets ([ 3ed8c12] ( https://github.com/groq/groq-python/commit/3ed8c1292fc8e2d02b838c253de2ea60cd483801 ) )
15+ * update lockfile ([ f240076] ( https://github.com/groq/groq-python/commit/f240076efb2c0ab64fd4c001c1db0cd24e25d14d ) )
16+
317## 0.37.0 (2025-12-01)
418
519Full Changelog: [ v0.36.0...v0.37.0] ( https://github.com/groq/groq-python/compare/v0.36.0...v0.37.0 )
Original file line number Diff line number Diff line change @@ -95,14 +95,15 @@ pip install groq[aiohttp]
9595Then you can enable it by instantiating the client with ` http_client=DefaultAioHttpClient() ` :
9696
9797``` python
98+ import os
9899import asyncio
99100from groq import DefaultAioHttpClient
100101from groq import AsyncGroq
101102
102103
103104async def main () -> None :
104105 async with AsyncGroq(
105- api_key = " My API Key " ,
106+ api_key = os.environ.get( " GROQ_API_KEY " ), # This is the default and can be omitted
106107 http_client = DefaultAioHttpClient(),
107108 ) as client:
108109 chat_completion = await client.chat.completions.create(
Original file line number Diff line number Diff line change 11[project ]
22name = " groq"
3- version = " 0.37.0 "
3+ version = " 0.37.1 "
44description = " The official Python library for the groq API"
55dynamic = [" readme" ]
66license = " Apache-2.0"
77authors = [
88{ name = " Groq" , email = " support@groq.com" },
99]
10+
1011dependencies = [
11- " httpx>=0.23.0, <1" ,
12- " pydantic>=1.9.0, <3" ,
13- " typing-extensions>=4.10, <5" ,
14- " anyio>=3.5.0, <5" ,
15- " distro>=1.7.0, <2" ,
16- " sniffio" ,
12+ " httpx>=0.23.0, <1" ,
13+ " pydantic>=1.9.0, <3" ,
14+ " typing-extensions>=4.10, <5" ,
15+ " anyio>=3.5.0, <5" ,
16+ " distro>=1.7.0, <2" ,
17+ " sniffio" ,
1718]
19+
1820requires-python = " >= 3.9"
1921classifiers = [
2022 " Typing :: Typed" ,
Original file line number Diff line number Diff line change 1212-e file:.
1313aiohappyeyeballs==2.6.1
1414 # via aiohttp
15- aiohttp==3.12.8
15+ aiohttp==3.13.2
1616 # via groq
1717 # via httpx-aiohttp
18- aiosignal==1.3.2
18+ aiosignal==1.4.0
1919 # via aiohttp
20- annotated-types==0.6 .0
20+ annotated-types==0.7 .0
2121 # via pydantic
22- anyio==4.4 .0
22+ anyio==4.12 .0
2323 # via groq
2424 # via httpx
25- argcomplete==3.1.2
25+ argcomplete==3.6.3
2626 # via nox
2727async-timeout==5.0.1
2828 # via aiohttp
29- attrs==25.3 .0
29+ attrs==25.4 .0
3030 # via aiohttp
31- certifi==2023.7.22
31+ # via nox
32+ backports-asyncio-runner==1.2.0
33+ # via pytest-asyncio
34+ certifi==2025.11.12
3235 # via httpcore
3336 # via httpx
34- colorlog==6.7.0
37+ colorlog==6.10.1
38+ # via nox
39+ dependency-groups==1.3.1
3540 # via nox
36- dirty-equals==0.6.0
37- distlib==0.3.7
41+ dirty-equals==0.11
42+ distlib==0.4.0
3843 # via virtualenv
39- distro==1.8 .0
44+ distro==1.9 .0
4045 # via groq
41- exceptiongroup==1.2.2
46+ exceptiongroup==1.3.1
4247 # via anyio
4348 # via pytest
44- execnet==2.1.1
49+ execnet==2.1.2
4550 # via pytest-xdist
46- filelock==3.12.4
51+ filelock==3.19.1
4752 # via virtualenv
48- frozenlist==1.6.2
53+ frozenlist==1.8.0
4954 # via aiohttp
5055 # via aiosignal
5156h11==0.16.0
@@ -58,82 +63,87 @@ httpx==0.28.1
5863 # via respx
5964httpx-aiohttp==0.1.9
6065 # via groq
61- idna==3.4
66+ humanize==4.13.0
67+ # via nox
68+ idna==3.11
6269 # via anyio
6370 # via httpx
6471 # via yarl
65- importlib-metadata==7.0 .0
66- iniconfig==2.0 .0
72+ importlib-metadata==8.7 .0
73+ iniconfig==2.1 .0
6774 # via pytest
6875markdown-it-py==3.0.0
6976 # via rich
7077mdurl==0.1.2
7178 # via markdown-it-py
72- multidict==6.4.4
79+ multidict==6.7.0
7380 # via aiohttp
7481 # via yarl
7582mypy==1.17.0
76- mypy-extensions==1.0 .0
83+ mypy-extensions==1.1 .0
7784 # via mypy
78- nodeenv==1.8.0
85+ nodeenv==1.9.1
7986 # via pyright
80- nox==2023.4.22
81- packaging==23.2
87+ nox==2025.11.12
88+ packaging==25.0
89+ # via dependency-groups
8290 # via nox
8391 # via pytest
8492pathspec==0.12.1
8593 # via mypy
86- platformdirs==3.11 .0
94+ platformdirs==4.4 .0
8795 # via virtualenv
88- pluggy==1.5 .0
96+ pluggy==1.6 .0
8997 # via pytest
90- propcache==0.3 .1
98+ propcache==0.4 .1
9199 # via aiohttp
92100 # via yarl
93- pydantic==2.11.9
101+ pydantic==2.12.5
94102 # via groq
95- pydantic-core==2.33.2
103+ pydantic-core==2.41.5
96104 # via pydantic
97- pygments==2.18.0
105+ pygments==2.19.2
106+ # via pytest
98107 # via rich
99108pyright==1.1.399
100- pytest==8.3.3
109+ pytest==8.4.2
101110 # via pytest-asyncio
102111 # via pytest-xdist
103- pytest-asyncio==0.24 .0
104- pytest-xdist==3.7 .0
105- python-dateutil==2.8.2
112+ pytest-asyncio==1.2 .0
113+ pytest-xdist==3.8 .0
114+ python-dateutil==2.9.0.post0
106115 # via time-machine
107- pytz==2023.3.post1
108- # via dirty-equals
109116respx==0.22.0
110- rich==13.7.1
111- ruff==0.9.4
112- setuptools==68.2.2
113- # via nodeenv
114- six==1.16.0
117+ rich==14.2.0
118+ ruff==0.14.7
119+ six==1.17.0
115120 # via python-dateutil
116- sniffio==1.3.0
117- # via anyio
121+ sniffio==1.3.1
118122 # via groq
119- time-machine==2.9.0
120- tomli==2.0.2
123+ time-machine==2.19.0
124+ tomli==2.3.0
125+ # via dependency-groups
121126 # via mypy
127+ # via nox
122128 # via pytest
123- typing-extensions==4.12.2
129+ typing-extensions==4.15.0
130+ # via aiosignal
124131 # via anyio
132+ # via exceptiongroup
125133 # via groq
126134 # via multidict
127135 # via mypy
128136 # via pydantic
129137 # via pydantic-core
130138 # via pyright
139+ # via pytest-asyncio
131140 # via typing-inspection
132- typing-inspection==0.4.1
141+ # via virtualenv
142+ typing-inspection==0.4.2
133143 # via pydantic
134- virtualenv==20.24.5
144+ virtualenv==20.35.4
135145 # via nox
136- yarl==1.20 .0
146+ yarl==1.22 .0
137147 # via aiohttp
138- zipp==3.17 .0
148+ zipp==3.23 .0
139149 # via importlib-metadata
Original file line number Diff line number Diff line change 1212-e file:.
1313aiohappyeyeballs==2.6.1
1414 # via aiohttp
15- aiohttp==3.12.8
15+ aiohttp==3.13.2
1616 # via groq
1717 # via httpx-aiohttp
18- aiosignal==1.3.2
18+ aiosignal==1.4.0
1919 # via aiohttp
20- annotated-types==0.6 .0
20+ annotated-types==0.7 .0
2121 # via pydantic
22- anyio==4.4 .0
22+ anyio==4.12 .0
2323 # via groq
2424 # via httpx
2525async-timeout==5.0.1
2626 # via aiohttp
27- attrs==25.3 .0
27+ attrs==25.4 .0
2828 # via aiohttp
29- certifi==2023.7.22
29+ certifi==2025.11.12
3030 # via httpcore
3131 # via httpx
32- distro==1.8 .0
32+ distro==1.9 .0
3333 # via groq
34- exceptiongroup==1.2.2
34+ exceptiongroup==1.3.1
3535 # via anyio
36- frozenlist==1.6.2
36+ frozenlist==1.8.0
3737 # via aiohttp
3838 # via aiosignal
3939h11==0.16.0
@@ -45,31 +45,32 @@ httpx==0.28.1
4545 # via httpx-aiohttp
4646httpx-aiohttp==0.1.9
4747 # via groq
48- idna==3.4
48+ idna==3.11
4949 # via anyio
5050 # via httpx
5151 # via yarl
52- multidict==6.4.4
52+ multidict==6.7.0
5353 # via aiohttp
5454 # via yarl
55- propcache==0.3 .1
55+ propcache==0.4 .1
5656 # via aiohttp
5757 # via yarl
5858pydantic==2.12.5
5959 # via groq
6060pydantic-core==2.41.5
6161 # via pydantic
62- sniffio==1.3.0
63- # via anyio
62+ sniffio==1.3.1
6463 # via groq
6564typing-extensions==4.15.0
65+ # via aiosignal
6666 # via anyio
67+ # via exceptiongroup
6768 # via groq
6869 # via multidict
6970 # via pydantic
7071 # via pydantic-core
7172 # via typing-inspection
7273typing-inspection==0.4.2
7374 # via pydantic
74- yarl==1.20 .0
75+ yarl==1.22 .0
7576 # via aiohttp
You can’t perform that action at this time.
0 commit comments