From 2e68e5aa034aa5fc1ec19696e4bc3f0b9fdbe4d5 Mon Sep 17 00:00:00 2001 From: Missy Davies Date: Tue, 2 Jul 2024 11:44:25 -0400 Subject: [PATCH] Remove latency from output to fix error --- eli5/codesuggestions/evaluate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eli5/codesuggestions/evaluate.py b/eli5/codesuggestions/evaluate.py index 395ecd60..9cf4e279 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) -- GitLab