diff --git a/ui/components/SettingsDialog.tsx b/ui/components/SettingsDialog.tsx index d8fc971..763a793 100644 --- a/ui/components/SettingsDialog.tsx +++ b/ui/components/SettingsDialog.tsx @@ -2,6 +2,7 @@ import { Dialog, Transition } from '@headlessui/react'; import { CloudUpload, RefreshCcw, RefreshCw } from 'lucide-react'; import React, { Fragment, useEffect, useState } from 'react'; import { StyledInput } from './common/StyledInput'; +import { StyledSelect } from './common/StyledSelect'; interface SettingsType { chatModelProviders: { @@ -170,7 +171,7 @@ const SettingsDialog = ({

Chat model Provider

- + )} {selectedChatModelProvider && selectedChatModelProvider != 'custom_openai' && (

Chat Model

- +
)} {selectedChatModelProvider && @@ -276,7 +275,7 @@ const SettingsDialog = ({

Embedding model Provider

- + )} {selectedEmbeddingModelProvider && (

Embedding Model

- +
)}
diff --git a/ui/components/common/StyledSelect.tsx b/ui/components/common/StyledSelect.tsx new file mode 100644 index 0000000..1a96755 --- /dev/null +++ b/ui/components/common/StyledSelect.tsx @@ -0,0 +1,28 @@ +import { cn } from '@/lib/utils'; +import type { OptionHTMLAttributes, SelectHTMLAttributes } from 'react'; + +export interface StyledSelectProps + extends SelectHTMLAttributes {} + +export const StyledSelect = function StyledSelect({ + className, + ...restProps +}: StyledSelectProps) { + return ( +