This PR adds a new main.py file to the repository, implementing a FastAPI example program. The main.py file contains a FastAPI application with a /health endpoint that returns a simple JSON response indicating the API is healthy.
Summary of Changes
Created a new file named main.py at the root of the repository
Imported the FastAPI class from the fastapi module
Created an instance of FastAPI
Defined a new route /health that returns a JSON response indicating the API is healthy
Added a health_check function that is called when the /health route is accessed
Fixes #1.
🎉 Latest improvements to Sweep:
Getting Sweep to run linters before committing! Check out Sweep Sandbox Configs to set it up.
Added support for self-hosting! Check out Self-hosting Sweep to get started.
[Self Hosting] Multiple options to compute vector embeddings, configure your .env file using VECTOR_EMBEDDING_SOURCE
💡 To get Sweep to edit this pull request, you can:
Leave a comment below to get Sweep to edit the entire PR
Leave a comment in the code will only modify the file
Edit the original issue to get Sweep to recreate the PR from scratch
PR Feedback (click)
Description
This PR adds a new main.py file to the repository, implementing a FastAPI example program. The main.py file contains a FastAPI application with a /health endpoint that returns a simple JSON response indicating the API is healthy.
Summary of Changes
Fixes #1.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: