Open Ravindra2711 opened 5 months ago
I really liked your implementation of the drop-down list, but I noticed a bug: when you select a certain model, it does not become the main model, i.e. the selected model is not displayed after closing the drop-down list). In general, everything is fine)
Hey!
I like your work and "Made randomly by @ravi”)
Let's change the initial state: 'Option 1' to 'gpt-3.5-turbo-0125' in useState. Also, let's make the unordered list more prettier. Create a list with model names and inside the unordered list, use map() to display new elements.
This is how I see it:
const models = ['model1', 'model2', ...]
<>
<ul ...>
{models.map(model => (
<li key={model}>...</li>
)}
</>
Also, let's make the text inside the dropdown smaller and lengthen the space for the options so that the content fits in one line.