Skip to content

Commit 7d0f658

Browse files
committed
import fix in tavily
1 parent e9f8dd2 commit 7d0f658

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/handlers/websearch/tavily.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ class TavilyHandler(WebSearchHandler):
88
def get_extra_requirements() -> list:
99
return ["tavily_python"]
1010

11+
def is_installed(self) -> bool:
12+
try:
13+
from tavily import TavilyClient
14+
except Exception as e:
15+
return False
16+
return True
17+
1118
def get_extra_settings(self) -> list:
1219
return [
1320
ExtraSettings.EntrySetting("token", _("Token"), _("Tavily API key"), ""),

0 commit comments

Comments
 (0)