chore: remove model selection in assistant tab model (#3411)

This commit is contained in:
Faisal Amir 2024-08-19 22:14:42 +07:00 committed by GitHub
parent 6a3b438558
commit c4419632d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,13 +7,10 @@ import {
TextArea,
Accordion,
AccordionItem,
Button,
} from '@janhq/joi'
import { useAtom, useAtomValue, useSetAtom } from 'jotai'
import { Settings2Icon } from 'lucide-react'
import CopyOverInstruction from '@/containers/CopyInstruction'
import EngineSetting from '@/containers/EngineSetting'
import ModelDropdown from '@/containers/ModelDropdown'
@ -214,32 +211,6 @@ const ThreadRightPanel = () => {
/>
</div>
{experimentalFeature && <CopyOverInstruction />}
<div>
<label
id="assistant-instructions"
className="mb-2 inline-block font-bold"
>
Model
</label>
<div className="flex gap-2">
<div className="w-full">
<ModelDropdown />
</div>
<Button
theme="icon"
variant="outline"
className="!h-8 !w-8 flex-shrink-0"
onClick={() => {
setActiveTabThreadRightPanel('model')
}}
>
<Settings2Icon
size={16}
className="flex-shrink-0 cursor-pointer text-[hsla(var(--text-secondary))]"
/>
</Button>
</div>
</div>
</div>
</TabsContent>
<TabsContent value="model">