Skip to content

Commit

Permalink
Added a fix to ensure location_info requests are captured accurately …
Browse files Browse the repository at this point in the history
…in the log.
  • Loading branch information
KieranRatcliffeInvertedAI committed Dec 16, 2024
1 parent 9743a0f commit 0b6396d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion invertedai/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,11 @@ def request(
method, relative_path = iai.model_resources[model]

if self._debug_logger is not None:
self._debug_logger.append_request(model,data)
if data is not None:
request_data = data
elif params is not None:
request_data = params
self._debug_logger.append_request(model,request_data)

response = self._request(
method=method,
Expand Down

0 comments on commit 0b6396d

Please sign in to comment.