llmasaservice-ui 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/ChatPanel.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -198,7 +198,7 @@ var ChatPanel = ({
|
|
|
198
198
|
});
|
|
199
199
|
});
|
|
200
200
|
let promptToSend = nextPrompt;
|
|
201
|
-
if (Object.keys(history).length ===
|
|
201
|
+
if (Object.keys(history).length === 0 && promptTemplate && promptTemplate !== "") {
|
|
202
202
|
promptToSend = promptTemplate.replace("{{prompt}}", nextPrompt);
|
|
203
203
|
for (let i = 0; i < data.length; i++) {
|
|
204
204
|
promptToSend = promptToSend.replace(
|
package/dist/index.mjs
CHANGED
|
@@ -165,7 +165,7 @@ var ChatPanel = ({
|
|
|
165
165
|
});
|
|
166
166
|
});
|
|
167
167
|
let promptToSend = nextPrompt;
|
|
168
|
-
if (Object.keys(history).length ===
|
|
168
|
+
if (Object.keys(history).length === 0 && promptTemplate && promptTemplate !== "") {
|
|
169
169
|
promptToSend = promptTemplate.replace("{{prompt}}", nextPrompt);
|
|
170
170
|
for (let i = 0; i < data.length; i++) {
|
|
171
171
|
promptToSend = promptToSend.replace(
|
package/package.json
CHANGED
package/src/ChatPanel.tsx
CHANGED
|
@@ -194,7 +194,7 @@ const ChatPanel: React.FC<ChatPanelProps & ExtraProps> = ({
|
|
|
194
194
|
|
|
195
195
|
// if this is the first user message, use the template. otherwise it is a follow-on question(s)
|
|
196
196
|
if (
|
|
197
|
-
Object.keys(history).length ===
|
|
197
|
+
Object.keys(history).length === 0 &&
|
|
198
198
|
promptTemplate &&
|
|
199
199
|
promptTemplate !== ""
|
|
200
200
|
) {
|