Skip to content

Commit

Permalink
Pass config variable to SearchAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
bmquinn committed Dec 17, 2024
1 parent 7e4cae7 commit eea458f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chat/src/handlers/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def handler(event, context):

metrics = MetricsHandler()
callbacks = [AgentHandler(config.socket, config.ref), metrics]
search_agent = SearchAgent(model=chat_model(event), streaming=True)
search_agent = SearchAgent(model=chat_model(config), streaming=True)
try:
search_agent.invoke(config.question, config.ref, forget=config.forget, callbacks=callbacks)
log_metrics(context, metrics, config)
Expand Down

0 comments on commit eea458f

Please sign in to comment.