(fix) tg AI cost tracking - zero-one-ai/Yi-34B-Chat

This commit is contained in:
ishaan-jaff 2023-12-29 09:14:07 +05:30
parent d79df3a1e9
commit daf32f3bd4

View file

@ -2350,6 +2350,7 @@ def client(original_function):
def get_model_params_and_category(model_name):
import re
model_name = model_name.lower()
params_match = re.search(
r"(\d+b)", model_name
) # catch all decimals like 3b, 70b, etc