Skip to content

Commit

Permalink
handle weaviate UUID case
Browse files Browse the repository at this point in the history
  • Loading branch information
alizenhom committed Jan 8, 2025
1 parent 22aec89 commit 12807d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
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"

0 comments on commit 12807d6

Please sign in to comment.