Open chris-t-li opened 1 year ago
Name | Link |
---|---|
Latest commit | f5cb835715c0efa98a149a1cfe81ffe7420b5924 |
Latest deploy log | https://app.netlify.com/sites/fantasyfit/deploys/646f74069f737e0007ca252e |
Deploy Preview | https://deploy-preview-139--fantasyfit.netlify.app/ |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site settings.
In the Posts component, define the workoutContextArray that will be the array of prompts that is sent to the above endpoint.
In Posts#Controller, add functionality if the params[:post_type] is "bot", the user that is creating the post shall be the bot in the competition
For testing and initial implementation, a "ChatBot" button has been created in Posts with an onClick event that sends a post request to the fantasy_bot_ai api endpoint "/fitbot/comment", which sends a request to openai with the array of prompts, and receives a GPT reply that is sent to the client. The client then renders the response by creating a post/comment generated by the bot participant in the competition
****NOTE This is currently in testing mode only. Functionality will not work in deployment as fantasy_bot_ai has not yet been deployed. To test this functionality, open https://github.com/Fantasy-Fit/fantasyfit_bot_ai as per instructions in the README END****