This commit is contained in:
smfahim25 2025-11-18 03:50:28 +00:00
parent bc30973ae5
commit 75e28c71a2

View file

@ -157,7 +157,7 @@ async def process_fact_check(query: str) -> Union[FactCheckResponse, UnverifiedF
sources=sources,
evidence=evidence,
explanation=explanation,
additional_context=f"Fact checked using PlanPost AI on {datetime.now().strftime('%Y-%m-%d')}"
additional_context=f"Fact checked using Fruad Guard on {datetime.now().strftime('%Y-%m-%d')}"
)
except Exception as e:
@ -168,7 +168,7 @@ async def process_fact_check(query: str) -> Union[FactCheckResponse, UnverifiedF
confidence=ConfidenceEnum.LOW,
sources=[],
evidence='No fact check results found.',
explanation="Failed to contact Perplexity AI or parse its response.",
explanation="No Fact check found for this",
additional_context="Possible API issue or malformed response."
)
@ -197,7 +197,7 @@ def extract_fact_check_info(text_response: str) -> Dict[str, Any]:
"""Extract fact-checking information from a text response when JSON parsing fails.
Args:
text_response: The text response from Perplexity AI
text_response: The text response from Fruad Guard
Returns:
A dictionary with fact-checking information extracted from the text