Refactor log handling in deepresearch module
Removed the unnecessary `logs` initialization and streamlined the `CustomLogsHandler` setup. This simplifies the code and avoids redundant log storage.
This commit is contained in:
parent
936eb6f394
commit
ffeb2527b3
1 changed files with 1 additions and 2 deletions
|
@ -20,8 +20,7 @@ class ReportGenerator:
|
|||
self.query = query
|
||||
self.report_type = report_type
|
||||
# Initialize researcher with a custom WebSocket
|
||||
self.logs = []
|
||||
self.custom_logs_handler = CustomLogsHandler(self.logs)
|
||||
self.custom_logs_handler = CustomLogsHandler()
|
||||
|
||||
self.researcher = GPTResearcher(query, report_type, websocket=self.custom_logs_handler)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue