+
+
+
+
setNewVariable(e.target.value)}
+ placeholder="Add variable name (e.g. user_name, topic)"
+ onKeyPress={e =>
+ e.key === "Enter" && (e.preventDefault(), addVariable())
+ }
+ className="flex-1"
+ />
+
+
+
+ {formData.variables.length > 0 && (
+
+
+ {formData.variables.map(variable => (
+
+ {variable}
+
+
+ ))}
+
+
+ )}
+
+
+ Variables that can be used in the prompt template. Each variable
+ should match a {`{{variable}}`} placeholder in the content above.
+
+