This PR adds a new main.py file to the repository, implementing a FastAPI example program. The program includes a /health endpoint that returns a simple JSON response indicating the API is healthy.
Summary of Changes
Created a new file named main.py in the src directory
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
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 program includes 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: