Merge pull request #592 from ayushjha119/Fixed-Health-Check-to-Khoj-api

Fixed health check to khoj api
This commit is contained in:
sabaimran 2023-12-23 13:04:50 +05:30 committed by GitHub
commit afec4394f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -862,3 +862,8 @@ async def extract_references_and_questions(
compiled_references = [item.additional["compiled"] for item in result_list] compiled_references = [item.additional["compiled"] for item in result_list]
return compiled_references, inferred_queries, defiltered_query return compiled_references, inferred_queries, defiltered_query
@api.get("/health")
async def health_check():
return Response(status_code=200)