@blank-utils/llm 0.3.16 → 0.3.17
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.
|
@@ -1312,7 +1312,11 @@ function Chat({
|
|
|
1312
1312
|
abortRef.current = false;
|
|
1313
1313
|
const apiMessages = [];
|
|
1314
1314
|
if (systemPrompt) {
|
|
1315
|
-
|
|
1315
|
+
const finalSystemPrompt = systemPrompt !== DEFAULT_SYSTEM_PROMPT ? `${DEFAULT_SYSTEM_PROMPT}
|
|
1316
|
+
|
|
1317
|
+
Additional instructions:
|
|
1318
|
+
${systemPrompt}` : systemPrompt;
|
|
1319
|
+
apiMessages.push({ role: "system", content: finalSystemPrompt });
|
|
1316
1320
|
}
|
|
1317
1321
|
currentMessages.forEach((m) => {
|
|
1318
1322
|
let content = m.content;
|
package/dist/index.js
CHANGED
package/dist/react/index.js
CHANGED
package/package.json
CHANGED