feat(gui): highlight tokens that have been used in prompt
This commit is contained in:
parent
a4bf4ac651
commit
fd34b4a764
|
@ -79,7 +79,13 @@ export function PromptInput(props: PromptInputProps) {
|
|||
});
|
||||
}}
|
||||
/>
|
||||
{tokens.map(([token, _weight]) => <Chip label={token} onClick={() => addToken(token)} />)}
|
||||
<Stack direction='row' spacing={2}>
|
||||
{tokens.map(([token, _weight]) => <Chip
|
||||
color={prompt.includes(token) ? 'primary' : 'default'}
|
||||
label={token}
|
||||
onClick={() => addToken(token)}
|
||||
/>)}
|
||||
</Stack>
|
||||
<TextField
|
||||
label={t('parameter.negativePrompt')}
|
||||
variant='outlined'
|
||||
|
|
Loading…
Reference in New Issue