@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
- apiMessages.push({ role: "system", content: systemPrompt });
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
@@ -26,7 +26,7 @@ import {
26
26
  useCompletion,
27
27
  useLLM,
28
28
  useStream
29
- } from "./chunk-2NH37DND.js";
29
+ } from "./chunk-CU46QZJ4.js";
30
30
  export {
31
31
  Chat,
32
32
  ChatInput,
@@ -9,7 +9,7 @@ import {
9
9
  useCompletion,
10
10
  useLLM,
11
11
  useStream
12
- } from "../chunk-2NH37DND.js";
12
+ } from "../chunk-CU46QZJ4.js";
13
13
  export {
14
14
  Chat,
15
15
  ChatApp,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blank-utils/llm",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "description": "Run LLMs directly in your browser with WebGPU acceleration. Supports React hooks and eager background loading.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",