diff --git a/ui/components/SettingsDialog.tsx b/ui/components/SettingsDialog.tsx index be94db2..d8fc971 100644 --- a/ui/components/SettingsDialog.tsx +++ b/ui/components/SettingsDialog.tsx @@ -1,6 +1,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'; interface SettingsType { chatModelProviders: { @@ -232,42 +233,39 @@ const SettingsDialog = ({ <>

Model name

- setSelectedChatModel(e.target.value) } - className="bg-[#111111] px-3 py-2 flex items-center overflow-hidden border border-[#1C1C1C] text-white rounded-lg text-sm" />

Custom OpenAI API Key

- setCustomOpenAIApiKey(e.target.value) } - className="bg-[#111111] px-3 py-2 flex items-center overflow-hidden border border-[#1C1C1C] text-white rounded-lg text-sm" />

Custom OpenAI Base URL

- setCustomOpenAIBaseURL(e.target.value) } - className="bg-[#111111] px-3 py-2 flex items-center overflow-hidden border border-[#1C1C1C] text-white rounded-lg text-sm" />
@@ -337,7 +335,7 @@ const SettingsDialog = ({ )}

OpenAI API Key

-

Ollama API URL

-

GROQ API Key

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