Skip to content

Commit ba4765f

Browse files
Merge pull request #231 from inverted-ai/hotfix_debug_location
Added a fix to ensure location_info requests are captured accurately …
2 parents e44de2d + d713a6c commit ba4765f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

invertedai/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,10 @@ def request(
262262
method, relative_path = iai.model_resources[model]
263263

264264
if self._debug_logger is not None:
265-
self._debug_logger.append_request(model,data)
265+
request_data = data
266+
if params is not None:
267+
request_data = params
268+
self._debug_logger.append_request(model,request_data)
266269

267270
response = self._request(
268271
method=method,

0 commit comments

Comments
 (0)