forked from phoenix/litellm-mirror
(fix) tg AI cost tracking - zero-one-ai/Yi-34B-Chat
This commit is contained in:
parent
d79df3a1e9
commit
daf32f3bd4
1 changed files with 1 additions and 0 deletions
|
@ -2350,6 +2350,7 @@ def client(original_function):
|
||||||
def get_model_params_and_category(model_name):
|
def get_model_params_and_category(model_name):
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
model_name = model_name.lower()
|
||||||
params_match = re.search(
|
params_match = re.search(
|
||||||
r"(\d+b)", model_name
|
r"(\d+b)", model_name
|
||||||
) # catch all decimals like 3b, 70b, etc
|
) # catch all decimals like 3b, 70b, etc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue