Skip to content

Commit

Permalink
fix(types): remove misleading betas TypedDict property for the Batch …
Browse files Browse the repository at this point in the history
…API (#697)
  • Loading branch information
RobertCraigie authored and stainless-app[bot] committed Oct 17, 2024
1 parent 3ad63db commit 6f19104
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions src/anthropic/types/beta/message_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
from __future__ import annotations

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

from ..._utils import PropertyInfo
from ..model_param import ModelParam
from .beta_tool_param import BetaToolParam
from .beta_message_param import BetaMessageParam
from .beta_metadata_param import BetaMetadataParam
from ..anthropic_beta_param import AnthropicBetaParam
from .beta_text_block_param import BetaTextBlockParam
from .beta_tool_choice_param import BetaToolChoiceParam

Expand Down Expand Up @@ -256,9 +254,6 @@ class MessageCreateParamsBase(TypedDict, total=False):
`temperature`.
"""

betas: Annotated[List[AnthropicBetaParam], PropertyInfo(alias="anthropic-beta")]
"""Optional header to specify the beta version(s) you want to use."""


class MessageCreateParamsNonStreaming(MessageCreateParamsBase, total=False):
stream: Literal[False]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
from __future__ import annotations

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

from ...._utils import PropertyInfo
from ...model_param import ModelParam
from ...metadata_param import MetadataParam
from ...tool_choice_param import ToolChoiceParam
from ...anthropic_beta_param import AnthropicBetaParam
from ...tool_choice_any_param import ToolChoiceAnyParam
from ...tool_choice_auto_param import ToolChoiceAutoParam
from ...tool_choice_tool_param import ToolChoiceToolParam
Expand Down Expand Up @@ -268,9 +266,6 @@ class MessageCreateParamsBase(TypedDict, total=False):
`temperature`.
"""

betas: Annotated[List[AnthropicBetaParam], PropertyInfo(alias="anthropic-beta")]
"""Optional header to specify the beta version(s) you want to use."""


Metadata: TypeAlias = MetadataParam
"""This is deprecated, `MetadataParam` should be used instead"""
Expand Down

0 comments on commit 6f19104

Please sign in to comment.