Skip to content

Commit

Permalink
flag
Browse files Browse the repository at this point in the history
  • Loading branch information
isahers1 committed Dec 9, 2024
1 parent 57e366d commit 1ec049f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion python/langsmith/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3624,7 +3624,7 @@ def update_examples_multipart(
) -> ls_schemas.UpsertExamplesResponse:
"""Upload examples."""
if not (self.info.instance_flags or {}).get(
"examples_multipart_enabled", False
"dataset_examples_multipart_enabled", False
):
raise ValueError(
"Your LangSmith version does not allow using the multipart examples endpoint, please update to the latest version."
Expand Down Expand Up @@ -4157,6 +4157,13 @@ def update_example(
Dict[str, Any]
The updated example.
"""
if attachments_operations is not None:
if not (self.info.instance_flags or {}).get(
"dataset_examples_multipart_enabled", False
):
raise ValueError(
"Your LangSmith version does not allow using the attachment operations, please update to the latest version."
)
example = dict(
inputs=inputs,
outputs=outputs,
Expand Down Expand Up @@ -4210,6 +4217,13 @@ def update_examples(
Dict[str, Any]
The response from the server (specifies the number of examples updated).
"""
if attachments_operations is not None:
if not (self.info.instance_flags or {}).get(
"dataset_examples_multipart_enabled", False
):
raise ValueError(
"Your LangSmith version does not allow using the attachment operations, please update to the latest version."
)
sequence_args = {
"inputs": inputs,
"outputs": outputs,
Expand Down

0 comments on commit 1ec049f

Please sign in to comment.