diff --git a/src/khoj/routers/api.py b/src/khoj/routers/api.py index 2baf6838..5fc79bcd 100644 --- a/src/khoj/routers/api.py +++ b/src/khoj/routers/api.py @@ -83,7 +83,7 @@ async def search( n=n, t=t, r=r, - max_distance=max_distance, + max_distance=max_distance or math.inf, dedupe=dedupe, )