switch wording to embeddings

This commit is contained in:
Mary Hipp 2023-07-07 13:58:07 -04:00
parent 01b27a03a8
commit 294336b046
3 changed files with 8 additions and 8 deletions

View File

@ -107,7 +107,7 @@ export type SDFeature =
| 'seamless'
| 'hires'
| 'lora'
| 'tiEmbedding'
| 'embedding'
| 'vae';
/**

View File

@ -72,7 +72,7 @@ const ParamNegativeConditioning = () => {
[dispatch, onClose, negativePrompt]
);
const isTiEmbeddingEnabled = useFeatureStatus('tiEmbedding').isFeatureEnabled;
const isEmbeddingEnabled = useFeatureStatus('embedding').isFeatureEnabled;
return (
<FormControl>
@ -91,10 +91,10 @@ const ParamNegativeConditioning = () => {
resize="vertical"
fontSize="sm"
minH={16}
{...(isTiEmbeddingEnabled && { onKeyDown: handleKeyDown })}
{...(isEmbeddingEnabled && { onKeyDown: handleKeyDown })}
/>
</ParamEmbeddingPopover>
{!isOpen && isTiEmbeddingEnabled && (
{!isOpen && isEmbeddingEnabled && (
<Box
sx={{
position: 'absolute',

View File

@ -102,7 +102,7 @@ const ParamPositiveConditioning = () => {
[dispatch, onClose, prompt]
);
const isTiEmbeddingEnabled = useFeatureStatus('tiEmbedding').isFeatureEnabled;
const isEmbeddingEnabled = useFeatureStatus('embedding').isFeatureEnabled;
const handleKeyDown = useCallback(
(e: KeyboardEvent<HTMLTextAreaElement>) => {
@ -111,11 +111,11 @@ const ParamPositiveConditioning = () => {
dispatch(clampSymmetrySteps());
dispatch(userInvoked(activeTabName));
}
if (isTiEmbeddingEnabled && e.key === '<') {
if (isEmbeddingEnabled && e.key === '<') {
onOpen();
}
},
[isReady, dispatch, activeTabName, onOpen, isTiEmbeddingEnabled]
[isReady, dispatch, activeTabName, onOpen, isEmbeddingEnabled]
);
// const handleSelect = (e: MouseEvent<HTMLTextAreaElement>) => {
@ -144,7 +144,7 @@ const ParamPositiveConditioning = () => {
/>
</ParamEmbeddingPopover>
</FormControl>
{!isOpen && isTiEmbeddingEnabled && (
{!isOpen && isEmbeddingEnabled && (
<Box
sx={{
position: 'absolute',