This commit is contained in:
Saifeddine ALOUI 2024-10-31 14:52:39 +01:00
parent 18198f8f98
commit cd07e0307c
5 changed files with 12 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
web/dist/index.html vendored
View File

@ -6,8 +6,8 @@
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LoLLMS WebUI</title>
<script type="module" crossorigin src="/assets/index-qvaLafRN.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-6QoepHjD.css">
<script type="module" crossorigin src="/assets/index-CX5jATIW.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-Dk2jggHn.css">
</head>
<body>
<div id="app"></div>

View File

@ -1951,6 +1951,8 @@ export default {
preview = preview.replace(regex, value || placeholder.fullText);
});
this.previewPrompt = preview;
console.log("previewPrompt")
console.log(this.previewPrompt)
},
escapeRegExp(string) {
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
@ -1975,7 +1977,10 @@ export default {
// Apply the final prompt and close modal
this.finalPrompt = finalPrompt;
this.showPlaceholderModal = false;
this.setPromptInChatbox(this.previewPrompt);
console.log("previewPrompt apply")
console.log(this.previewPrompt)
this.setPromptInChatbox(this.getPromptContent(this.previewPrompt));
},
extractPlaceholders(prompt) {

@ -1 +1 @@
Subproject commit 85d55d27d251b27aac11ed9e581193907f0f69bf
Subproject commit 4b299818e120a6b76d119905d965bb30abc39131