chore: copy edit for model setting (#3553)
* chore: copy edit for model setting * chore: make a const for copy accordion
This commit is contained in:
parent
fb01216ae2
commit
edf5c77dd6
@ -44,6 +44,10 @@ import {
|
|||||||
|
|
||||||
import { activeTabThreadRightPanelAtom } from '@/helpers/atoms/ThreadRightPanel.atom'
|
import { activeTabThreadRightPanelAtom } from '@/helpers/atoms/ThreadRightPanel.atom'
|
||||||
|
|
||||||
|
const INFERENCE_SETTINGS = 'Inference Settings'
|
||||||
|
const MODEL_SETTINGS = 'Model Settings'
|
||||||
|
const ENGINE_SETTINGS = 'Engine Settings'
|
||||||
|
|
||||||
const ThreadRightPanel = () => {
|
const ThreadRightPanel = () => {
|
||||||
const activeThread = useAtomValue(activeThreadAtom)
|
const activeThread = useAtomValue(activeThreadAtom)
|
||||||
const activeModelParams = useAtomValue(getActiveThreadModelParamsAtom)
|
const activeModelParams = useAtomValue(getActiveThreadModelParamsAtom)
|
||||||
@ -239,8 +243,8 @@ const ThreadRightPanel = () => {
|
|||||||
<Accordion defaultValue={[]}>
|
<Accordion defaultValue={[]}>
|
||||||
{settings.runtimeSettings.length !== 0 && (
|
{settings.runtimeSettings.length !== 0 && (
|
||||||
<AccordionItem
|
<AccordionItem
|
||||||
title="Inference Parameters"
|
title={INFERENCE_SETTINGS}
|
||||||
value="Inference Parameters"
|
value={INFERENCE_SETTINGS}
|
||||||
>
|
>
|
||||||
<ModelSetting
|
<ModelSetting
|
||||||
componentProps={settings.runtimeSettings}
|
componentProps={settings.runtimeSettings}
|
||||||
@ -250,16 +254,13 @@ const ThreadRightPanel = () => {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{promptTemplateSettings.length !== 0 && (
|
{promptTemplateSettings.length !== 0 && (
|
||||||
<AccordionItem title="Model Parameters" value="Model Parameters">
|
<AccordionItem title={MODEL_SETTINGS} value={MODEL_SETTINGS}>
|
||||||
<PromptTemplateSetting componentData={promptTemplateSettings} />
|
<PromptTemplateSetting componentData={promptTemplateSettings} />
|
||||||
</AccordionItem>
|
</AccordionItem>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{settings.engineSettings.length !== 0 && (
|
{settings.engineSettings.length !== 0 && (
|
||||||
<AccordionItem
|
<AccordionItem title={ENGINE_SETTINGS} value={ENGINE_SETTINGS}>
|
||||||
title="Engine Parameters"
|
|
||||||
value="Engine Parameters"
|
|
||||||
>
|
|
||||||
<EngineSetting
|
<EngineSetting
|
||||||
componentData={settings.engineSettings}
|
componentData={settings.engineSettings}
|
||||||
onValueChanged={onValueChanged}
|
onValueChanged={onValueChanged}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user