Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions apps/backend/app/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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.
Expand Down
Loading