@astermind/cybernetic-chatbot-client 2.2.67 → 2.2.74
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/CyberneticSessionStorage.d.ts +3 -0
- package/dist/CyberneticSessionStorage.d.ts.map +1 -1
- package/dist/cybernetic-chatbot-client-full.esm.js +3 -3
- package/dist/cybernetic-chatbot-client-full.esm.js.map +1 -1
- package/dist/cybernetic-chatbot-client-full.min.js +1 -1
- package/dist/cybernetic-chatbot-client-full.min.js.map +1 -1
- package/dist/cybernetic-chatbot-client-full.umd.js +3 -3
- package/dist/cybernetic-chatbot-client-full.umd.js.map +1 -1
- package/dist/cybernetic-chatbot-client.esm.js +3 -3
- package/dist/cybernetic-chatbot-client.esm.js.map +1 -1
- package/dist/cybernetic-chatbot-client.min.js +1 -1
- package/dist/cybernetic-chatbot-client.min.js.map +1 -1
- package/dist/cybernetic-chatbot-client.umd.js +3 -3
- package/dist/cybernetic-chatbot-client.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -2957,7 +2957,7 @@ class CyberneticClient {
|
|
|
2957
2957
|
this.sessionStorage.saveSessionId(response.sessionId);
|
|
2958
2958
|
}
|
|
2959
2959
|
this.sessionStorage.addMessage({ role: 'user', content: message });
|
|
2960
|
-
this.sessionStorage.addMessage({ role: 'assistant', content: processedReply, confidence: 'high' });
|
|
2960
|
+
this.sessionStorage.addMessage({ role: 'assistant', content: processedReply, confidence: 'high', sources: response.sources || [] });
|
|
2961
2961
|
return {
|
|
2962
2962
|
reply: processedReply,
|
|
2963
2963
|
confidence: 'high',
|
|
@@ -3034,7 +3034,7 @@ class CyberneticClient {
|
|
|
3034
3034
|
if (response.sessionId) {
|
|
3035
3035
|
this.sessionStorage.saveSessionId(response.sessionId);
|
|
3036
3036
|
}
|
|
3037
|
-
this.sessionStorage.addMessage({ role: 'assistant', content: processedReply, confidence: 'high' });
|
|
3037
|
+
this.sessionStorage.addMessage({ role: 'assistant', content: processedReply, confidence: 'high', sources: response.sources });
|
|
3038
3038
|
callbacks.onComplete?.({
|
|
3039
3039
|
...response,
|
|
3040
3040
|
reply: processedReply
|
|
@@ -3091,7 +3091,7 @@ class CyberneticClient {
|
|
|
3091
3091
|
if (data.sessionId) {
|
|
3092
3092
|
this.sessionStorage.saveSessionId(data.sessionId);
|
|
3093
3093
|
}
|
|
3094
|
-
this.sessionStorage.addMessage({ role: 'assistant', content: processedReply, confidence: 'high' });
|
|
3094
|
+
this.sessionStorage.addMessage({ role: 'assistant', content: processedReply, confidence: 'high', sources: data.sources || [] });
|
|
3095
3095
|
callbacks.onComplete?.({
|
|
3096
3096
|
reply: processedReply,
|
|
3097
3097
|
confidence: 'high',
|