Project

General

Profile

Feature #3591

Initial support for curriculum parameter to div

Added by Ram Kordale 6 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
High
Start date:
06/04/2024
Due date:
% Done:

100%

Estimated time:
1.00 h

Description

If we have a parameter curriculum="k-12", please show "Please select grade and subject <grade dropdown> <subject dropdown>" left aligned with the chat interface. Grade drop down should show "5" to "12" and subject dropdown should contain "Science", "Social Science", "Mathematics" as options. We will add more options later.

If user picks a grade K, and subject S, then call call_openai_api with index="cbse-K-S".

Notes:
1) if curriculum="k-12" - not present => use index="1"
2) if curriculum="k-12" - is present and nothing in dropdown selected - SEND is enabled but we show a message about selecting both dropdowns - when clicked on SEND
3) if curriculum="k-12" - is present and one of the dropdown is not selected - SEND is enabled but we show a message about selecting the missing dropdown - when clicked on SEND
4) if curriculum="k-12" - is present and both dropdowns are selected - show response

Also available in: Atom PDF