-
Notifications
You must be signed in to change notification settings - Fork 8
Client-side JS Code to Communicate with Flask Endpoint #11
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requesthacktoberfestup-for-grabsCurated tasks specifically for new contributorsCurated tasks specifically for new contributors
Milestone
Description
Is your feature request related to a problem? Please describe.
Users should be able to send their questions and receive responses without refreshing the page.
Describe the solution you'd like
Implement JS frontend functionality in the template to:
- Listen for button clicks.
- On button click, send an POST request with the user's question to /ask-chatgpt.
- Update the UI with ChatGPT's response in the dedicated section.
Describe alternatives you've considered
A full-page reload could be considered but would degrade the user experience.
Additional context
N/A
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthacktoberfestup-for-grabsCurated tasks specifically for new contributorsCurated tasks specifically for new contributors