From 315d42bbc5a27009a92e19195f63215c4c1d4059 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Thu, 28 Sep 2023 03:46:01 -0600 Subject: [PATCH] divide by 0??? --- llm_server/helpers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llm_server/helpers.py b/llm_server/helpers.py index 1ba5db8..44b436b 100644 --- a/llm_server/helpers.py +++ b/llm_server/helpers.py @@ -53,6 +53,9 @@ def jsonify_pretty(json_dict: Union[list, dict], status=200, indent=4, sort_keys def round_up_base(n, base): + if base == 0: + print('round_up_base DIVIDE BY ZERO ERROR????', n, base) + return 0 return math.ceil(n / base) * base