/** | |
* src/components/Models/index.jsx | |
* Select a model: gpt3.5, gpt4, or claude | |
* | |
* created by Lynchee on 7/20/23 | |
*/ | |
import React from 'react'; | |
import './style.css' | |
const Models = ({selectedModel, setSelectedModel}) => { | |
const models = ["gpt-3.5-turbo-16k", "gpt-4", "claude-2"]; | |
return ( | |
<div className="models-container"> | |
<label className="models-label" htmlFor="models-selection">Select a model:</label> | |
<div id="models-selection" className="select-dropdown"> | |
<select value={selectedModel} onChange={(e) => setSelectedModel(e.target.value)}> | |
<option disabled value="">Select Model</option> | |
{models.map((model, index) => <option key={index} value={model}>{model}</option>)} | |
</select> | |
</div> | |
</div> | |
) | |
} | |
export default Models; | |