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
6 changes: 4 additions & 2 deletions src/langtrace_python_sdk/instrumentation/weaviate/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
def extract_inputs(args, kwargs):
extracted_params = {}
kwargs_without_properties = {
k: v for k, v in kwargs.items() if k not in ["properties", "fusion_type", "filters"]
k: v
for k, v in kwargs.items()
if k not in ["properties", "fusion_type", "filters"]
}
extracted_params.update(extract_input_params(args, kwargs_without_properties))
if kwargs.get("filters", None):
Expand Down Expand Up @@ -94,7 +96,7 @@ def aggregate_responses(result):
# For single object responses
all_responses = get_response_object_attributes(result)

return json.dumps(all_responses)
return json.dumps(all_responses, default=str)


def get_response_object_attributes(response_object):
Expand Down
2 changes: 1 addition & 1 deletion src/langtrace_python_sdk/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.3.20"
__version__ = "3.3.21"
Loading