Skip to content

Commit

Permalink
Add import for marqo
Browse files Browse the repository at this point in the history
  • Loading branch information
sky-2002 committed Feb 24, 2024
1 parent d749ff2 commit 054bca2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gptcache/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"import_redis",
"import_qdrant",
"import_weaviate",
"import_marqo",
]

import importlib.util
Expand All @@ -59,6 +60,8 @@ def _check_library(libname: str, prompt: bool = True, package: Optional[str] = N
prompt_install(package if package else libname)
return is_avail

def import_marqo():
_check_library("marqo")

def import_pymilvus():
_check_library("pymilvus")
Expand Down

0 comments on commit 054bca2

Please sign in to comment.