Feature #3591
Updated by Ayanava Karmakar 6 months ago
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 => use index="1"