(request_data: FactCheckRequest)
| 40 | |
| 41 | @app.post("/fact_check_code") |
| 42 | async def fact_check_code(request_data: FactCheckRequest): |
| 43 | request_obj = FactCheckRequest(**request_data.dict()) |
| 44 | fact_check_result = await factool_instance.run_for_plugin([{'prompt': request_obj.prompt, 'response': request_obj.response, 'category': 'code', 'entry_point': request_obj.entry_point}]) |
| 45 | fact_check_id = len(fact_checks) + 1 |
| 46 | fact_checks[fact_check_id] = fact_check_result |
| 47 | return JSONResponse(content={"fact_check_id": fact_check_id, "fact_check_result": fact_check_result}) |
| 48 | |
| 49 | @app.post("/fact_check_math") |
| 50 | async def fact_check_math(request_data: FactCheckRequest): |
nothing calls this directly
no test coverage detected