avoid button showing up for other systemprompt like conversation chain
This commit is contained in:
parent
8bdac386a5
commit
d397adb47a
|
|
@ -223,29 +223,30 @@ const NodeInputHandler = ({ inputAnchor, inputParam, data, disabled = false, isA
|
||||||
</CustomWidthTooltip>
|
</CustomWidthTooltip>
|
||||||
)}
|
)}
|
||||||
<Box sx={{ p: 2 }}>
|
<Box sx={{ p: 2 }}>
|
||||||
{(inputParam.name === 'template' || inputParam.name === 'systemMessagePrompt') && (
|
{(data.name === 'promptTemplate' || data.name === 'chatPromptTemplate') &&
|
||||||
<>
|
(inputParam.name === 'template' || inputParam.name === 'systemMessagePrompt') && (
|
||||||
<Button
|
<>
|
||||||
style={{
|
<Button
|
||||||
display: 'flex',
|
style={{
|
||||||
flexDirection: 'row',
|
display: 'flex',
|
||||||
width: '100%'
|
flexDirection: 'row',
|
||||||
}}
|
width: '100%'
|
||||||
sx={{ borderRadius: 25, width: '100%', mb: 2, mt: 0 }}
|
}}
|
||||||
variant='outlined'
|
sx={{ borderRadius: 25, width: '100%', mb: 2, mt: 0 }}
|
||||||
onClick={() => onShowPromptHubButtonClicked()}
|
variant='outlined'
|
||||||
endIcon={<IconAutoFixHigh />}
|
onClick={() => onShowPromptHubButtonClicked()}
|
||||||
>
|
endIcon={<IconAutoFixHigh />}
|
||||||
Langsmith Prompt Hub
|
>
|
||||||
</Button>
|
Langsmith Prompt Hub
|
||||||
<PromptLangsmithHubDialog
|
</Button>
|
||||||
promptType={inputParam.name}
|
<PromptLangsmithHubDialog
|
||||||
show={showPromptHubDialog}
|
promptType={inputParam.name}
|
||||||
onCancel={() => setShowPromptHubDialog(false)}
|
show={showPromptHubDialog}
|
||||||
onSubmit={onShowPromptHubButtonSubmit}
|
onCancel={() => setShowPromptHubDialog(false)}
|
||||||
></PromptLangsmithHubDialog>
|
onSubmit={onShowPromptHubButtonSubmit}
|
||||||
</>
|
></PromptLangsmithHubDialog>
|
||||||
)}
|
</>
|
||||||
|
)}
|
||||||
<div style={{ display: 'flex', flexDirection: 'row' }}>
|
<div style={{ display: 'flex', flexDirection: 'row' }}>
|
||||||
<Typography>
|
<Typography>
|
||||||
{inputParam.label}
|
{inputParam.label}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue