diff --git a/eli5/codesuggestions/evaluate.py b/eli5/codesuggestions/evaluate.py index 395ecd60a0af39b22cb2ad3867414d400ebf7114..9cf4e2798d3bc19f48f9d435ecf580014c2d8d4f 100644 --- a/eli5/codesuggestions/evaluate.py +++ b/eli5/codesuggestions/evaluate.py @@ -51,12 +51,12 @@ def evaluate( raise ValueError("Invalid client specified") # rate limiting affects built-in latency measurement - # so we should meassure our own that is unaffected + # so we should measure our own that is unaffected start = time.perf_counter() result = get_code_suggestion(file_name, content_above_cursor, content_below_cursor) end = time.perf_counter() - return {"output": result.get("output"), "latency": (end - start) * 1000.0} + return {"output": result.get("output")} @sleep_and_retry @limits(calls=rate_limit, period=60)