diff --git a/.release-please-manifest.json b/.release-please-manifest.json index ce5e5c7c..157f0355 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.35.0" + ".": "0.36.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 3fe6d856..9d3d7595 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%2Fgroqcloud-b059caa2a4d4cc23663f61d2ec0f83a4b0e4eda7ed1f2dbbb129c5d320811200.yml -openapi_spec_hash: 87ccaae4d281259575c961b9cd52766e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/groqcloud%2Fgroqcloud-50245ef9d4df0e66805d3dd75d7a68915c9007d64599af17c9d016f698919d02.yml +openapi_spec_hash: b2d428817feb68795013e7300c4fc681 config_hash: a4a6c3089a2e53425351cc9f42b4b5aa diff --git a/CHANGELOG.md b/CHANGELOG.md index 75af1e62..f6ce2a44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.36.0 (2025-11-20) + +Full Changelog: [v0.35.0...v0.36.0](https://github.com/groq/groq-python/compare/v0.35.0...v0.36.0) + +### Features + +* **api:** api update ([0287563](https://github.com/groq/groq-python/commit/0287563c912fa48175776e134b5668ea3e07cadd)) + + +### Chores + +* GitHub Terraform: Create/Update .github/workflows/code-freeze-bypass.yaml [skip ci] ([07f6b0b](https://github.com/groq/groq-python/commit/07f6b0b62205115ca6ee58b9bab5c73a9c81f0e9)) + ## 0.35.0 (2025-11-18) Full Changelog: [v0.34.1...v0.35.0](https://github.com/groq/groq-python/compare/v0.34.1...v0.35.0) diff --git a/pyproject.toml b/pyproject.toml index 6a372aea..8642a412 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "groq" -version = "0.35.0" +version = "0.36.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 e1489c12..4f8fd0ff 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__ = "0.35.0" # x-release-please-version +__version__ = "0.36.0" # x-release-please-version diff --git a/src/groq/types/chat/chat_completion_content_part_param.py b/src/groq/types/chat/chat_completion_content_part_param.py index e0c6e480..52af3a48 100644 --- a/src/groq/types/chat/chat_completion_content_part_param.py +++ b/src/groq/types/chat/chat_completion_content_part_param.py @@ -2,14 +2,36 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypeAlias +from typing import Dict, Union, Optional +from typing_extensions import Literal, Required, TypeAlias, TypedDict from .chat_completion_content_part_text_param import ChatCompletionContentPartTextParam from .chat_completion_content_part_image_param import ChatCompletionContentPartImageParam -__all__ = ["ChatCompletionContentPartParam"] +__all__ = [ + "ChatCompletionContentPartParam", + "ChatCompletionRequestMessageContentPartDocument", + "ChatCompletionRequestMessageContentPartDocumentDocument", +] + + +class ChatCompletionRequestMessageContentPartDocumentDocument(TypedDict, total=False): + data: Required[Dict[str, object]] + """The JSON document data.""" + + id: Optional[str] + """Optional unique identifier for the document.""" + + +class ChatCompletionRequestMessageContentPartDocument(TypedDict, total=False): + document: Required[ChatCompletionRequestMessageContentPartDocumentDocument] + + type: Required[Literal["document"]] + """The type of the content part.""" + ChatCompletionContentPartParam: TypeAlias = Union[ - ChatCompletionContentPartTextParam, ChatCompletionContentPartImageParam + ChatCompletionContentPartTextParam, + ChatCompletionContentPartImageParam, + ChatCompletionRequestMessageContentPartDocument, ]