From 8c4f489c5d467293bcb29bcfe517287134e1f684 Mon Sep 17 00:00:00 2001 From: anigasan Date: Sun, 6 Jul 2025 12:52:47 -0700 Subject: [PATCH] commits --- .../remote/tool_runtime/tavily_search/tavily_search.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/llama_stack/providers/remote/tool_runtime/tavily_search/tavily_search.py b/llama_stack/providers/remote/tool_runtime/tavily_search/tavily_search.py index e8ca36cf4..cdaf78d4a 100644 --- a/llama_stack/providers/remote/tool_runtime/tavily_search/tavily_search.py +++ b/llama_stack/providers/remote/tool_runtime/tavily_search/tavily_search.py @@ -69,11 +69,10 @@ class TavilySearchToolRuntimeImpl(ToolGroupsProtocolPrivate, ToolRuntime, NeedsR async def invoke_tool(self, tool_name: str, kwargs: dict[str, Any]) -> ToolInvocationResult: api_key = self._get_api_key() - - # Configure timeout for external API calls using config values - timeout = httpx.Timeout(timeout=self.config.timeout, connect=self.config.connect_timeout) - - async with httpx.AsyncClient(timeout=timeout) as client: + + timeout = https.Timeout(timeout=self.config.timeout, connect=self.config.connect_timeout) + + async with httpx.AsyncClient() as client: response = await client.post( "https://api.tavily.com/search", json={"api_key": api_key, "query": kwargs["query"]},