Skip to content

Commit c1b0e73

Browse files
committed
remove callback manager from llm
1 parent 95fb444 commit c1b0e73

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

templates/components/engines/python/agent/engine.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ def get_chat_engine(filters=None, params=None, event_handlers=None):
1212
system_prompt = os.getenv("SYSTEM_PROMPT")
1313
top_k = int(os.getenv("TOP_K", 0))
1414
tools = []
15-
llm = Settings.llm
1615
callback_manager = CallbackManager(handlers=event_handlers or [])
17-
llm.callback_manager = callback_manager
1816

1917
# Add query tool if index exists
2018
index_config = IndexConfig(callback_manager=callback_manager, **(params or {}))

templates/components/engines/python/chat/engine.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ def get_chat_engine(filters=None, params=None, event_handlers=None):
1818
token_limit=llm.metadata.context_window - 256
1919
)
2020
callback_manager = CallbackManager(handlers=event_handlers or [])
21-
llm.callback_manager = callback_manager
2221

2322
node_postprocessors = []
2423
if citation_prompt:

0 commit comments

Comments
 (0)