Skip to content

Commit 12807d6

Browse files
committed
handle weaviate UUID case
1 parent 22aec89 commit 12807d6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/langtrace_python_sdk/instrumentation/weaviate/patch.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@
4949
def extract_inputs(args, kwargs):
5050
extracted_params = {}
5151
kwargs_without_properties = {
52-
k: v for k, v in kwargs.items() if k not in ["properties", "fusion_type", "filters"]
52+
k: v
53+
for k, v in kwargs.items()
54+
if k not in ["properties", "fusion_type", "filters"]
5355
}
5456
extracted_params.update(extract_input_params(args, kwargs_without_properties))
5557
if kwargs.get("filters", None):
@@ -94,7 +96,7 @@ def aggregate_responses(result):
9496
# For single object responses
9597
all_responses = get_response_object_attributes(result)
9698

97-
return json.dumps(all_responses)
99+
return json.dumps(all_responses, default=str)
98100

99101

100102
def get_response_object_attributes(response_object):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.3.20"
1+
__version__ = "3.3.21"

0 commit comments

Comments
 (0)