diff --git a/src/lib/components/chat/VariableInputModal.svelte b/src/lib/components/chat/VariableInputModal.svelte new file mode 100644 index 000000000..32ee72cea --- /dev/null +++ b/src/lib/components/chat/VariableInputModal.svelte @@ -0,0 +1,104 @@ + + + + + + {$i18n.t('Enter Variable Values')} + (show = false)} + aria-label={$i18n.t('Close')} + > + + + + + + {#if subtitle} + {@html subtitle} + {/if} + + + {#each variables as variable (variable)} + + + {@html $i18n.t('Insert a value for {{variable}}', { variable })} + + { + if (e.key === 'Enter' && !e.shiftKey) { + e.preventDefault(); + } + }} + /> + + {/each} + + + + (show = false)} + > + {$i18n.t('Cancel')} + + + {$i18n.t('Submit')} + + + +
{@html subtitle}