nikhmr1235 commited on
Commit
b2799ca
·
verified ·
1 Parent(s): 46af780

+web_downloader_limited_tool to save tokens len

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,7 +23,7 @@ from langchain_openai import ChatOpenAI
23
  from openai import OpenAI
24
 
25
  # tools imported from helper.py
26
- from helper import repl_tool, get_travily_api_search_tool,web_downloader_tool
27
 
28
 
29
 
@@ -149,7 +149,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
149
  print(f"Using Tavily API key: {tavily_api_key[:4]}... (truncated for security)")
150
 
151
  travily_api_search_tool = get_travily_api_search_tool(tavily_api_key)
152
- tools = [travily_api_search_tool, repl_tool, web_downloader_tool]
153
 
154
  # Pull a predefined prompt from LangChain Hub
155
  # "hwchase17/react-chat" is a prompt template designed for ReAct-style conversational agents.
 
23
  from openai import OpenAI
24
 
25
  # tools imported from helper.py
26
+ from helper import repl_tool, get_travily_api_search_tool,web_downloader_limited_tool
27
 
28
 
29
 
 
149
  print(f"Using Tavily API key: {tavily_api_key[:4]}... (truncated for security)")
150
 
151
  travily_api_search_tool = get_travily_api_search_tool(tavily_api_key)
152
+ tools = [travily_api_search_tool, repl_tool, web_downloader_limited_tool]
153
 
154
  # Pull a predefined prompt from LangChain Hub
155
  # "hwchase17/react-chat" is a prompt template designed for ReAct-style conversational agents.