Skip to content

hacksu/fastapi-gemini_wrapper

Repository files navigation

Step 1

Create a virtual environment, please. This is important. You need to do this otherwise I'll be mad

python -m venv .venv

Activate the virtual environment

windows

./.venv/Scripts/activate

mac/linux

. ./.venv/bin/activate

Step 2

Install dependancies

If you are cool and using uv

uv sync

If you are not cool and have not installed uv

pip install -r requirements.txt

Step 3

Run it

fastapi dev main.py

Step 4

Test it

curl -X POST http://localhost:8000/ -H "Content-Type: application/json" -d '{"message": "What is 2+2?"}'

About

Learn FastAPI by building a Gemini chatbot wrapper.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages