update
This commit is contained in:
parent
f7b2d77ce4
commit
dcf83bbf81
1 changed files with 2 additions and 2 deletions
|
|
@ -167,7 +167,7 @@ async def process_fact_check(query: str) -> Union[FactCheckResponse, UnverifiedF
|
||||||
verdict=VerdictEnum.UNVERIFIED,
|
verdict=VerdictEnum.UNVERIFIED,
|
||||||
confidence=ConfidenceEnum.LOW,
|
confidence=ConfidenceEnum.LOW,
|
||||||
sources=[],
|
sources=[],
|
||||||
evidence=str(e),
|
evidence='No fact check results found.',
|
||||||
explanation="Failed to contact Perplexity AI or parse its response.",
|
explanation="Failed to contact Perplexity AI or parse its response.",
|
||||||
additional_context="Possible API issue or malformed response."
|
additional_context="Possible API issue or malformed response."
|
||||||
)
|
)
|
||||||
|
|
@ -543,7 +543,7 @@ async def check_facts(request: FactCheckRequest):
|
||||||
verdict=VerdictEnum.UNVERIFIED,
|
verdict=VerdictEnum.UNVERIFIED,
|
||||||
confidence=ConfidenceEnum.LOW,
|
confidence=ConfidenceEnum.LOW,
|
||||||
sources=[],
|
sources=[],
|
||||||
evidence="Failed to process fact-checking request.",
|
evidence="No fact check results found",
|
||||||
explanation="The system encountered errors while processing the fact checks.",
|
explanation="The system encountered errors while processing the fact checks.",
|
||||||
additional_context="Please try again with different input or contact support if the issue persists."
|
additional_context="Please try again with different input or contact support if the issue persists."
|
||||||
)
|
)
|
||||||
Loading…
Add table
Reference in a new issue