forked from phoenix/litellm-mirror
make version check try except
This commit is contained in:
parent
01e2a67e70
commit
3e79d1523f
1 changed files with 4 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
|||
import importlib_metadata
|
||||
|
||||
version = importlib_metadata.version("litellm")
|
||||
try:
|
||||
version = importlib_metadata.version("litellm")
|
||||
except:
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue