Skip to content

release: 0.25.0 #241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.24.0"
".": "0.25.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 17
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/groqcloud%2Fgroqcloud-e4cd6fe4e6ac62707635fac8fb7d966a0360868e467b578ddd7cc04a9459ff26.yml
openapi_spec_hash: e618e809624bb2f3b36995638c3ba791
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/groqcloud%2Fgroqcloud-e08e435f65aeb7c4e773503f15f04eb488d2cf6ec4e122f406e32599eb2861f3.yml
openapi_spec_hash: ff68a1ae02aa5cabe33c0cc0379f4611
config_hash: 6b1c374dcc1ffa3165dd22f52a77ff89
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Changelog

## 0.25.0 (2025-05-10)

Full Changelog: [v0.24.0...v0.25.0](https://github.com/groq/groq-python/compare/v0.24.0...v0.25.0)

### Features

* **api:** api update ([1122aa0](https://github.com/groq/groq-python/commit/1122aa0662ec7af88799530de50f002645ccb5d0))


### Bug Fixes

* **package:** support direct resource imports ([82bfd68](https://github.com/groq/groq-python/commit/82bfd684a24d39e838e11612e060e3d6b1a4aac2))


### Chores

* **internal:** avoid errors for isinstance checks on proxies ([c6d4578](https://github.com/groq/groq-python/commit/c6d457878f231efba49f83a1c6f8cfd513b82cb9))
* use lazy imports for resources ([46c8767](https://github.com/groq/groq-python/commit/46c87674696ba966576c063d6d6e3e53e0140f81))


### Documentation

* remove or fix invalid readme examples ([9d81d35](https://github.com/groq/groq-python/commit/9d81d352a3b1c0c7092444617f64b8096b05f08d))

## 0.24.0 (2025-05-02)

Full Changelog: [v0.23.1...v0.24.0](https://github.com/groq/groq-python/compare/v0.23.1...v0.24.0)
Expand Down
26 changes: 2 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ chat_completion = client.chat.completions.create(
],
model="llama3-8b-8192",
)
print(chat_completion.choices[0].message.content)
print(chat_completion.id)
```

While you can provide an `api_key` keyword argument,
Expand Down Expand Up @@ -72,7 +72,7 @@ async def main() -> None:
],
model="llama3-8b-8192",
)
print(chat_completion.choices[0].message.content)
print(chat_completion.id)


asyncio.run(main())
Expand All @@ -89,28 +89,6 @@ Nested request parameters are [TypedDicts](https://docs.python.org/3/library/typ

Typed requests and responses provide autocomplete and documentation within your editor. If you would like to see type errors in VS Code to help catch bugs earlier, set `python.analysis.typeCheckingMode` to `basic`.

## Nested params

Nested parameters are dictionaries, typed using `TypedDict`, for example:

```python
from groq import Groq

client = Groq()

chat_completion = client.chat.completions.create(
messages=[
{
"content": "content",
"role": "system",
}
],
model="string",
response_format={"type": "json_object"},
)
print(chat_completion.response_format)
```

## File uploads

Request parameters that correspond to file uploads can be passed as `bytes`, or a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance or a tuple of `(filename, contents, media type)`.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "groq"
version = "0.24.0"
version = "0.25.0"
description = "The official Python library for the groq API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
5 changes: 5 additions & 0 deletions src/groq/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import typing as _t

from . import types
from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes
from ._utils import file_from_path
Expand Down Expand Up @@ -68,6 +70,9 @@
"DefaultAsyncHttpxClient",
]

if not _t.TYPE_CHECKING:
from ._utils._resources_proxy import resources as resources

_setup_logging()

# Update the __module__ attribute for exported symbols so that
Expand Down
Loading