File size: 1,030 Bytes
13ae717
82b23c6
 
 
 
 
 
 
13ae717
 
 
82b23c6
13ae717
 
 
 
82b23c6
 
8185bfc
 
13ae717
82b23c6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13ae717
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import {
  Select,
  SelectContent,
  SelectItem,
  SelectTrigger,
  SelectValue,
} from "@/components/ui/select";
import { MODELS } from "@/lib/providers";

export function Settings({
  model,
  onModelChange,
}: {
  model: string;
  onModelChange: (model: string) => void;
}) {
  const handleModelChange = (newModel: string) => {
    onModelChange(newModel);
  };

  return (
    <Select value={model} onValueChange={handleModelChange}>
      <SelectTrigger className="bg-neutral-800 border-neutral-700 text-neutral-200 h-8 min-w-[180px]">
        <SelectValue placeholder="Select a model" />
      </SelectTrigger>
      <SelectContent className="bg-neutral-800 border-neutral-700">
        {MODELS.map((modelOption) => (
          <SelectItem 
            key={modelOption.value} 
            value={modelOption.value}
            className="text-neutral-200 hover:bg-neutral-700 focus:bg-neutral-700"
          >
            {modelOption.label}
          </SelectItem>
        ))}
      </SelectContent>
    </Select>
  );
}