Skip to content
Merged
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.35.0"
".": "0.36.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-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
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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.35.0"
version = "0.36.0"
description = "The official Python library for the groq API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/groq/_version.py
Original file line number Diff line number Diff line change
@@ -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
30 changes: 26 additions & 4 deletions src/groq/types/chat/chat_completion_content_part_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]
Loading