fix(utils.py): fix python 3.8 linting error
This commit is contained in:
parent
151902f7d9
commit
f41b2a09a4
@ -43,10 +43,8 @@ try:
|
||||
# New and recommended way to access resources
|
||||
from importlib import resources
|
||||
|
||||
filename = str(
|
||||
resources.files(litellm).joinpath("llms/tokenizers")
|
||||
)
|
||||
except ImportError:
|
||||
filename = str(resources.files(litellm).joinpath("llms/tokenizers"))
|
||||
except (ImportError, AttributeError):
|
||||
# Old way to access resources, which setuptools deprecated some time ago
|
||||
import pkg_resources # type: ignore
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user