From 820dc37488dbcd9220446cf2c75395e5e7f1d0e8 Mon Sep 17 00:00:00 2001 From: NightingaleCen Date: Mon, 4 May 2026 08:19:31 +0200 Subject: [PATCH] fix(llm): remove duplicated _appears_truncated stub --- apps/backend/app/llm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/backend/app/llm.py b/apps/backend/app/llm.py index 51a5648af..46c9b4b2a 100644 --- a/apps/backend/app/llm.py +++ b/apps/backend/app/llm.py @@ -731,7 +731,6 @@ def _supports_json_mode(model_name: str) -> bool: return False -def _appears_truncated(data: dict, schema_type: str = "resume") -> bool: FALLBACK_MAX_TOKENS = 4096 def get_safe_max_tokens(model_name: str, requested: int = DEFAULT_JSON_MAX_TOKENS) -> int: @@ -779,7 +778,7 @@ def get_safe_max_tokens(model_name: str, requested: int = DEFAULT_JSON_MAX_TOKEN return safe -def _appears_truncated(data: dict) -> bool: +def _appears_truncated(data: dict, schema_type: str = "resume") -> bool: """LLM-001: Check if JSON data appears to be truncated. Detects suspicious patterns indicating incomplete responses.