llmasaservice-ui 0.2.0 → 0.2.1
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 +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/src/ChatPanel.tsx +2 -2
package/dist/index.js
CHANGED
|
@@ -105,7 +105,7 @@ var ChatPanel = ({
|
|
|
105
105
|
setIsLoading(true);
|
|
106
106
|
if (lastController) stop(lastController);
|
|
107
107
|
const controller = new AbortController();
|
|
108
|
-
send(initialPrompt, messages, true, true, controller);
|
|
108
|
+
send(initialPrompt, messages, true, true, null, controller);
|
|
109
109
|
setLastPrompt(initialPrompt);
|
|
110
110
|
setLastController(controller);
|
|
111
111
|
setHistory({});
|
|
@@ -148,7 +148,7 @@ var ChatPanel = ({
|
|
|
148
148
|
messagesAndHistory.push({ role: "assistant", content: response2 });
|
|
149
149
|
});
|
|
150
150
|
const controller = new AbortController();
|
|
151
|
-
send(nextPrompt, messagesAndHistory, true, true, controller);
|
|
151
|
+
send(nextPrompt, messagesAndHistory, true, true, null, controller);
|
|
152
152
|
setLastPrompt(nextPrompt);
|
|
153
153
|
setLastController(controller);
|
|
154
154
|
setNextPrompt("");
|
package/dist/index.mjs
CHANGED
|
@@ -72,7 +72,7 @@ var ChatPanel = ({
|
|
|
72
72
|
setIsLoading(true);
|
|
73
73
|
if (lastController) stop(lastController);
|
|
74
74
|
const controller = new AbortController();
|
|
75
|
-
send(initialPrompt, messages, true, true, controller);
|
|
75
|
+
send(initialPrompt, messages, true, true, null, controller);
|
|
76
76
|
setLastPrompt(initialPrompt);
|
|
77
77
|
setLastController(controller);
|
|
78
78
|
setHistory({});
|
|
@@ -115,7 +115,7 @@ var ChatPanel = ({
|
|
|
115
115
|
messagesAndHistory.push({ role: "assistant", content: response2 });
|
|
116
116
|
});
|
|
117
117
|
const controller = new AbortController();
|
|
118
|
-
send(nextPrompt, messagesAndHistory, true, true, controller);
|
|
118
|
+
send(nextPrompt, messagesAndHistory, true, true, null, controller);
|
|
119
119
|
setLastPrompt(nextPrompt);
|
|
120
120
|
setLastController(controller);
|
|
121
121
|
setNextPrompt("");
|
package/package.json
CHANGED
package/src/ChatPanel.tsx
CHANGED
|
@@ -82,7 +82,7 @@ const ChatPanel: React.FC<ChatPanelProps> = ({
|
|
|
82
82
|
if (lastController) stop(lastController);
|
|
83
83
|
const controller = new AbortController();
|
|
84
84
|
|
|
85
|
-
send(initialPrompt, messages, true, true, controller);
|
|
85
|
+
send(initialPrompt, messages, true, true, null, controller);
|
|
86
86
|
setLastPrompt(initialPrompt);
|
|
87
87
|
setLastController(controller);
|
|
88
88
|
setHistory({});
|
|
@@ -143,7 +143,7 @@ const ChatPanel: React.FC<ChatPanelProps> = ({
|
|
|
143
143
|
});
|
|
144
144
|
|
|
145
145
|
const controller = new AbortController();
|
|
146
|
-
send(nextPrompt, messagesAndHistory, true, true, controller);
|
|
146
|
+
send(nextPrompt, messagesAndHistory, true, true, null, controller);
|
|
147
147
|
|
|
148
148
|
setLastPrompt(nextPrompt);
|
|
149
149
|
setLastController(controller);
|