Spaces:
Running
Running
Download frontend/src/components/ModelSelect.tsx from nvikou/chatbot-ai: direct link, hf CLI and curl.
- Browser
- Download file 460 Bytes
-
https://huggingface.co/spaces/nvikou/chatbot-ai/resolve/main/frontend/src/components/ModelSelect.tsx
- Command line
-
hf download hf://spaces/nvikou/chatbot-ai/frontend/src/components/ModelSelect.tsx
-
curl -L -o ModelSelect.tsx https://huggingface.co/spaces/nvikou/chatbot-ai/resolve/main/frontend/src/components/ModelSelect.tsx
460 Bytes
| import React from 'react' | |
| const MODELS = ['gpt-4o-mini', 'gpt-4o', 'gpt-3.5-turbo'] | |
| export default function ModelSelect({ model, onChange }: { model: string; onChange: (m: string) => void }) { | |
| return ( | |
| <select | |
| className="bg-zinc-900 border border-zinc-700 rounded-xl px-3 py-2" | |
| value={model} | |
| onChange={e => onChange(e.target.value)} | |
| > | |
| {MODELS.map(m => <option key={m} value={m}>{m}</option>)} | |
| </select> | |
| ) | |
| } | |