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