kyunghei / Timeless-Tales

A web application utilizing AI to create custom choose-your-own-adventure stories with dynamic choices/outcomes and relevant artwork.
2 stars 0 forks source link

Route updates #50

Closed ShinyMyst closed 3 months ago

ShinyMyst commented 3 months ago

I named this branch restart because I had planned to just add the restart route, but things went a little further than planned. I tried to limit changes as much as possible but discovered a catch-22. I could not make a prompt without tag generation but could not do tag generation until a prompt was made. (Previously we did not need the prompt to do this because we were only looking at the tags and not the actual text associated with the tag). This required a bit of a rework.

main.py

context In order to make the "/user-choice" route work, I had to make major changes to context class.

helpers

I think that's about all. I changed the README once but stopped updating it because I ended up needed to change things again each time I fixed it. Decided to wait until everything was finalized instead.