From c9ffcd65731ad5df50f4139539c44122ba656996 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 13 May 2026 02:46:58 +0000 Subject: [PATCH 1/3] ci: pin GitHub Actions to commit SHAs Pin all GitHub Actions referenced in generated workflows (both first-party `actions/*` and third-party) to immutable commit SHAs. Updating pinned actions is now a deliberate codegen-side bump rather than implicit on every workflow run. --- .github/workflows/ci.yml | 8 ++++---- .github/workflows/publish-pypi.yml | 2 +- .github/workflows/release-doctor.yml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 344a337..5f53229 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: runs-on: ${{ github.repository == 'stainless-sdks/groqcloud-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata') steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Install Rye run: | @@ -46,7 +46,7 @@ jobs: id-token: write runs-on: ${{ github.repository == 'stainless-sdks/groqcloud-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Install Rye run: | @@ -67,7 +67,7 @@ jobs: github.repository == 'stainless-sdks/groqcloud-python' && !startsWith(github.ref, 'refs/heads/stl/') id: github-oidc - uses: actions/github-script@v8 + uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 with: script: core.setOutput('github_token', await core.getIDToken()); @@ -87,7 +87,7 @@ jobs: runs-on: ${{ github.repository == 'stainless-sdks/groqcloud-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: github.event_name == 'push' || github.event.pull_request.head.repo.fork steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Install Rye run: | diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index a67218d..11ce1bb 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Install Rye run: | diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index 53f2bac..8e545f9 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -12,7 +12,7 @@ jobs: if: github.repository == 'groq/groq-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next') steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Check release environment run: | From 8f8ef5411bec440b97ab8951e04e806770a4cbf3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 3 Jun 2026 14:30:10 +0000 Subject: [PATCH 2/3] feat(api): api update --- .stats.yml | 4 ++-- src/groq/types/chat/chat_completion.py | 9 ++------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4feff7f..9e81c14 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 17 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/groqcloud/groqcloud-0298a69b7d74303a353e8a586d85e5cc769b9560920487fadfe773c0100af249.yml -openapi_spec_hash: 4fad55cf0c3fc26500f4030edf31b64d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/groqcloud/groqcloud-e027dee69ce2400029f173e30aa64962a1237f18d1c1a31ffb64d7985666bc3b.yml +openapi_spec_hash: 4adaaf66c023faf06005a6a68512fee8 config_hash: 6468f67ad7c0d0333daea97b2f5403a4 diff --git a/src/groq/types/chat/chat_completion.py b/src/groq/types/chat/chat_completion.py index c1d806c..df57153 100644 --- a/src/groq/types/chat/chat_completion.py +++ b/src/groq/types/chat/chat_completion.py @@ -86,9 +86,7 @@ class UsageBreakdownModel(BaseModel): class UsageBreakdown(BaseModel): - """ - Detailed usage breakdown by model when multiple models are used in the request for compound AI systems. - """ + """Usage statistics for compound AI completion requests.""" models: List[UsageBreakdownModel] """List of models used in the request and their individual usage statistics""" @@ -188,10 +186,7 @@ class ChatCompletion(BaseModel): """Usage statistics for the completion request.""" usage_breakdown: Optional[UsageBreakdown] = None - """ - Detailed usage breakdown by model when multiple models are used in the request - for compound AI systems. - """ + """Usage statistics for compound AI completion requests.""" x_groq: Optional[XGroq] = None """Groq-specific metadata for non-streaming chat completion responses.""" From 0cf69155cb0c54b3fa231ed2590137fbc582969d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 3 Jun 2026 14:31:00 +0000 Subject: [PATCH 3/3] release: 1.5.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/groq/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 3e9af1b..fbd9082 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.4.0" + ".": "1.5.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 75e7ed0..c53fd20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.5.0 (2026-06-03) + +Full Changelog: [v1.4.0...v1.5.0](https://github.com/groq/groq-python/compare/v1.4.0...v1.5.0) + +### Features + +* **api:** api update ([8f8ef54](https://github.com/groq/groq-python/commit/8f8ef5411bec440b97ab8951e04e806770a4cbf3)) + ## 1.4.0 (2026-05-12) Full Changelog: [v1.3.0...v1.4.0](https://github.com/groq/groq-python/compare/v1.3.0...v1.4.0) diff --git a/pyproject.toml b/pyproject.toml index a0c98c2..5276653 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "groq" -version = "1.4.0" +version = "1.5.0" description = "The official Python library for the groq API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/groq/_version.py b/src/groq/_version.py index 25ec7c8..9765c37 100644 --- a/src/groq/_version.py +++ b/src/groq/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "groq" -__version__ = "1.4.0" # x-release-please-version +__version__ = "1.5.0" # x-release-please-version