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
4 changes: 2 additions & 2 deletions src/anthropic/resources/beta/messages/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ def parse(

betas = [beta for beta in betas] if is_given(betas) else []

if "structured-outputs-2025-11-13" not in betas:
if "structured-outputs-2025-11-13" not in betas and is_given(output_format):
# Ensure structured outputs beta is included for parse method
betas.append("structured-outputs-2025-11-13")

Expand Down Expand Up @@ -2789,7 +2789,7 @@ async def parse(
)
betas = [beta for beta in betas] if is_given(betas) else []

if "structured-outputs-2025-11-13" not in betas:
if "structured-outputs-2025-11-13" not in betas and is_given(output_format):
# Ensure structured outputs beta is included for parse method
betas.append("structured-outputs-2025-11-13")

Expand Down
4 changes: 1 addition & 3 deletions src/anthropic/types/beta/messages/batch_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import List, Literal, Iterable
from typing import List, Iterable
from typing_extensions import Required, Annotated, TypedDict

from ...._utils import PropertyInfo
Expand All @@ -28,8 +28,6 @@ class RequestParamsOutputFormat(TypedDict, total=False):
"""The JSON schema of the format"""




class Request(TypedDict, total=False):
custom_id: Required[str]
"""Developer-provided ID created for each request in a Message Batch.
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading