mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
fix(utils.py): fix select tokenizer for custom tokenizer (#7599)
* fix(utils.py): fix select tokenizer for custom tokenizer * fix(router.py): fix 'utils/token_counter' endpoint
This commit is contained in:
parent
a6fd407e7c
commit
0cf32ed2f3
4 changed files with 16 additions and 7 deletions
|
@ -4379,7 +4379,7 @@ class Router:
|
|||
pass
|
||||
|
||||
## GET LITELLM MODEL INFO - raises exception, if model is not mapped
|
||||
if not model.startswith(custom_llm_provider):
|
||||
if not model.startswith("{}/".format(custom_llm_provider)):
|
||||
model_info_name = "{}/{}".format(custom_llm_provider, model)
|
||||
else:
|
||||
model_info_name = model
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue