chore: remove model selection in assistant tab model (#3411)
This commit is contained in:
parent
6a3b438558
commit
c4419632d6
@ -7,13 +7,10 @@ import {
|
|||||||
TextArea,
|
TextArea,
|
||||||
Accordion,
|
Accordion,
|
||||||
AccordionItem,
|
AccordionItem,
|
||||||
Button,
|
|
||||||
} from '@janhq/joi'
|
} from '@janhq/joi'
|
||||||
|
|
||||||
import { useAtom, useAtomValue, useSetAtom } from 'jotai'
|
import { useAtom, useAtomValue, useSetAtom } from 'jotai'
|
||||||
|
|
||||||
import { Settings2Icon } from 'lucide-react'
|
|
||||||
|
|
||||||
import CopyOverInstruction from '@/containers/CopyInstruction'
|
import CopyOverInstruction from '@/containers/CopyInstruction'
|
||||||
import EngineSetting from '@/containers/EngineSetting'
|
import EngineSetting from '@/containers/EngineSetting'
|
||||||
import ModelDropdown from '@/containers/ModelDropdown'
|
import ModelDropdown from '@/containers/ModelDropdown'
|
||||||
@ -214,32 +211,6 @@ const ThreadRightPanel = () => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{experimentalFeature && <CopyOverInstruction />}
|
{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>
|
</div>
|
||||||
</TabsContent>
|
</TabsContent>
|
||||||
<TabsContent value="model">
|
<TabsContent value="model">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user