Skip to content

Commit

Permalink
Bugfix: fix regression introduced by code merge
Browse files Browse the repository at this point in the history
Match changes as of instructor-ai#678
  • Loading branch information
ssonal committed May 22, 2024
1 parent 057a217 commit 68021bc
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions instructor/mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,3 @@ class Mode(enum.Enum, metaclass=_WarnOnFunctionsAccessEnumMeta):
ANTHROPIC_JSON = "anthropic_json"
COHERE_TOOLS = "cohere_tools"
GEMINI_JSON = "gemini_json"

def __new__(cls, value: str) -> "Mode":
member = object.__new__(cls)
member._value_ = value

# Deprecation warning for FUNCTIONS
if value == "function_call":
warnings.warn(
"FUNCTIONS is deprecated and will be removed in future versions",
DeprecationWarning,
stacklevel=2,
)

0 comments on commit 68021bc

Please sign in to comment.