Open an endpoint so that frontend can send requests to get Suggestions based on General Statistics.
Implementation Details
Create an endpoint under the appropriate route that takes requests with user input.
Develop a system that sends the statistics prompt to a GPT-request module and gets correct responses.
Respond to the request with a suggestion as a JSON object.
Design and Tasks
Open an endpoint so that frontend can send requests to get Suggestions based on General Statistics
Integrate statistics prompt with GPT-Request module and get correct responses from GPT model
Return JSON object with suggestion as a response for requests.
Expected Output
A Json object with the suggestion field
{ "suggestion": String }
Acceptance Criteria
The function should reliably and correctly return the appropriate suggestion from general statistics.
Task Description
Open an endpoint so that frontend can send requests to get Suggestions based on General Statistics.
Implementation Details
Create an endpoint under the appropriate route that takes requests with user input. Develop a system that sends the statistics prompt to a GPT-request module and gets correct responses. Respond to the request with a suggestion as a JSON object.
Design and Tasks
Expected Output
A Json object with the suggestion field { "suggestion": String }
Acceptance Criteria
The function should reliably and correctly return the appropriate suggestion from general statistics.