Merge pull request #3389 from janhq/feat/add-model-assistant-tab
feat: add model assistant tab
This commit is contained in:
commit
76b2e58779
@ -7,10 +7,13 @@ 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 EngineSetting from '@/containers/EngineSetting'
|
import EngineSetting from '@/containers/EngineSetting'
|
||||||
import ModelDropdown from '@/containers/ModelDropdown'
|
import ModelDropdown from '@/containers/ModelDropdown'
|
||||||
|
|
||||||
@ -209,6 +212,32 @@ const ThreadRightPanel = () => {
|
|||||||
onChange={onAssistantInstructionChanged}
|
onChange={onAssistantInstructionChanged}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<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