Skip to content

brian-d-b/openai-gym-assistant

Repository files navigation

openai-gym-assistant

Creates a 4o assistant to recommend gym workouts

Setup

  1. Create a file called .env the contents should be: OPENAI_API_KEY=key
  2. Edit the prompts in create-assistant.py to your liking
  3. Run create-assistant.py
  4. Edit most-recent-workout.txt and put in your most recent workout and the date.
  5. Run get-response.py
  6. View ChatGPT_Response.HTML

Usage

Simply update most-recent-workout.txt, and then run get-response.py. The workout is saved in a conversation thread, and is constantly being updated and will stay in context of chatGPT.

Sample Output

image

Sample Input

initial-workout.txt:

8/8/2024

  • Squats 225lb 5x5
  • Deadlift 315lb 3x5
  • Leg press 400lb 4x10
  • Ran 2 miles

most-recent-workout.txt

8/9/2024

  • OHP 100lb 5x5
  • Bench 200lb 5x5
  • Tricep pushdown 50lb 4x10
  • Pushups 3x10
  • Face pulls 3x10
  • Ran 2 miles

About

Creates a 4o assistant to recommend gym workouts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published