Skip to content

Commit 8162d1a

Browse files
committed
Fix: docGPT_tool is None
1 parent a26589b commit 8162d1a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

agent/agent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def create_llm_chain(self) -> Tool:
6666
description='useful for general purpose queries and logic'
6767
)
6868
return tool
69+
6970
def initialize(self, tools):
7071
for tool in tools:
7172
if isinstance(tool, Tool):

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def load_api_key() -> None:
8888
if temp_file_path:
8989
os.remove(temp_file_path)
9090

91-
docGPT, calculate_tool, search_tool = None, None, None
91+
docGPT_tool, calculate_tool, search_tool = None, None, None
9292

9393
try:
9494
agent_ = AgentHelper()

0 commit comments

Comments
 (0)