mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-05 05:42:39 +02:00
chore: update uv.lock and ran linting
This commit is contained in:
parent
3ec30d94ce
commit
2755c0d7c0
6 changed files with 3270 additions and 3251 deletions
|
|
@ -275,9 +275,7 @@ def create_generate_report_tool(
|
|||
# so no DB connection is held during the long LLM call.
|
||||
async with async_session_maker() as read_session:
|
||||
if parent_report_id:
|
||||
parent_report = await read_session.get(
|
||||
Report, parent_report_id
|
||||
)
|
||||
parent_report = await read_session.get(Report, parent_report_id)
|
||||
if parent_report:
|
||||
report_group_id = parent_report.report_group_id
|
||||
parent_report_content = parent_report.content
|
||||
|
|
@ -291,9 +289,7 @@ def create_generate_report_tool(
|
|||
"creating standalone report"
|
||||
)
|
||||
|
||||
llm = await get_document_summary_llm(
|
||||
read_session, search_space_id
|
||||
)
|
||||
llm = await get_document_summary_llm(read_session, search_space_id)
|
||||
# read_session closed — connection returned to pool
|
||||
|
||||
if not llm:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue