resolve json_repair has no attribute JSONDecoderError

This commit is contained in:
Yash Shah
2025-02-12 15:08:57 +05:30
committed by GitHub
parent e848b1e530
commit ca464e7d3b

View File

@@ -1419,7 +1419,7 @@ async def minirag_query( # MiniRAG
type_keywords = keywords_data.get("answer_type_keywords", [])
entities_from_query = keywords_data.get("entities_from_query", [])[:5]
except json_repair.JSONDecodeError:
except json.JSONDecodeError:
try:
result = (
result.replace(kw_prompt[:-1], "")