Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

AIDropout/mini

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

479 Commits
479 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ensure that ngrok, and uv are installed.

Grab your ngrok auth token here (https://dashboard.ngrok.com/get-started/your-authtoken)

# 1 Navigate to the repository.
pip install uv

# 2. Create a virtual environment at .venv
uv venv

# 3. Activate environment.
source .venv/bin/activate # macOS and Linux
.venv\Scripts\activate # Windows

# 4. Install dependencies
uv pip install -r requirements.txt

Copy config.yaml.example to a new file called config.yaml in the same directory and configure keys.

🚀 Usage

Run the project:

   # 1. Run the FastAPI server
    python main.py

Testing Stripe webhook

https://dashboard.stripe.com/test/webhooks

stripe login # Download the CLI and log in with your Stripe account
stripe listen --forward-to http://127.0.0.1:8000/payment/webhook # Forward events to your webhook
stripe trigger checkout.session.completed # Manually trigger events with the CLI for testing
stripe trigger customer.subscription.deleted

celery -A mini.server.celery.celery worker -n worker1@%h --concurrency=2 & gunicorn -k uvicorn.workers.UvicornWorker main:app --bind 0.0.0.0:8000 --timeout 120 -w 1 ps aux | grep -E 'celery|gunicorn|python' | awk '{sum+=$6} END {print sum/1024 " MB"}' ps aux | grep -E 'celery|gunicorn|python' | grep -v grep | awk '{printf "%.2f MB - %s\n", $6/1024, $11}'

celery -A mini.server.celery.celery flower export PYTHONPATH=$PYTHONPATH:/Users/chris/Desktop/mini

pkill -f gunicorn pkill -f celery

ps aux | grep -E 'celery|gunicorn|python' | grep -v grep

Interact with the demo:

  • Add +1 (833) 819-1677 to contacts, or
  • Add @AIHealthCoachBot on Telegram

SSH

ssh -i "minikeypair.pem" ubuntu@ec2-44-194-155-71.compute-1.amazonaws.com cd mini source .venv/bin/activate

Dependencies

Add new dependencies:

uv pip install [package_name]
uv pip freeze > requirements.txt

Contributors

Contributors

About

The future of digital agents. 🧠 Infinite APIs and tooling. Bring your own prompts, LLM, messaging provider. ⚡

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.