klnamv / gpt_arena

Get answers from different GPT models.
MIT License
5 stars 6 forks source link

Buttons #8

Open Ravindra2711 opened 5 months ago

Ravindra2711 commented 5 months ago

Screenshot from 2024-05-03 01-03-59

Ravindra2711 commented 5 months ago

Screenshot from 2024-05-03 01-05-02

klnamv commented 4 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)

klnamv commented 4 months ago

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. image