From c21f3371b64516fe124b7d008e9f68fb5375991d Mon Sep 17 00:00:00 2001 From: stumpylog <797416+stumpylog@users.noreply.github.com> Date: Mon, 23 Nov 2026 13:28:01 -0800 Subject: [PATCH] Fne, annotate chat synthesizer llm as LLM --- src/paperless_ai/chat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/paperless_ai/chat.py b/src/paperless_ai/chat.py index dbffa9324e..bc787c1094 100644 --- a/src/paperless_ai/chat.py +++ b/src/paperless_ai/chat.py @@ -22,6 +22,7 @@ from paperless_ai.prompts.context import ChatRefinePromptContext from paperless_ai.prompts.render import render_prompt if TYPE_CHECKING: + from llama_index.core.llms import LLM from llama_index.core.response_synthesizers import BaseSynthesizer from llama_index.core.schema import NodeWithScore @@ -206,7 +207,7 @@ async def _start_answer( def _build_synthesizer( config: AIConfig, - llm: object, + llm: "LLM", output_language: str | None, *, chunk_size: int,