khoj-ai / khoj

Your AI second brain. Get answers to your questions, whether they be online or in your own notes. Use online AI models (e.g gpt4) or private, local LLMs (e.g llama3). Self-host locally or use our cloud instance. Access from Obsidian, Emacs, Desktop app, Web or Whatsapp.
https://khoj.dev
GNU Affero General Public License v3.0
12.63k stars 640 forks source link

Add a health check api to the khoj server #592

Closed ayushjha119 closed 9 months ago

ayushjha119 commented 9 months ago

Changed @app.get("/health") to @api.get("/health") used the Response class and set the input for for status_code to 200 and also remove the comment.

ayushjha119 commented 9 months ago

@sabaimran sorry for that silly mistake, i hope now everything will work fine

sabaimran commented 9 months ago

No issues @ayushjha119 ! Looks good to me. By the way, you don't have to create a new PR every time you push a change! You can simply push updates to your existing branch, and the PR should update on its own.

ayushjha119 commented 9 months ago

No issues @ayushjha119 ! Looks good to me. By the way, you don't have to create a new PR every time you push a change! You can simply push updates to your existing branch, and the PR should update on its own.

OKK , got it but still i am getting this @sabaimran Screenshot 2023-12-22 104609

sabaimran commented 9 months ago

Closes #570.