feat: support dialogue count in chatflow (#7440)

This commit is contained in:
Joel 2024-08-20 18:28:39 +08:00 • committed by GitHub
commit c70d69322b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 69 additions and 29 deletions

View file

@ -84,17 +84,30 @@ const Panel: FC<NodePanelProps<StartNodeType>> = ({
/>
{
isChatMode && (
<VarItem
readonly
payload={{
variable: 'sys.conversation_id',
} as any}
rightContent={
<div className='text-xs font-normal text-gray-500'>
String
</div>
}
/>
<>
<VarItem
readonly
payload={{
variable: 'sys.dialogue_count',
} as any}
rightContent={
<div className='text-xs font-normal text-gray-500'>
Number
</div>
}
/>
<VarItem
readonly
payload={{
variable: 'sys.conversation_id',
} as any}
rightContent={
<div className='text-xs font-normal text-gray-500'>
String
</div>
}
/>
</>
)
}
<VarItem