mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
Merge 6c482fb220
into d2dd1796a8
This commit is contained in:
commit
44b04edcba
|
@ -48,7 +48,11 @@ export const ChatPlugin: Plugin<ChatOptions> = {
|
||||||
options,
|
options,
|
||||||
);
|
);
|
||||||
|
|
||||||
let textMessage = sendMessageResponse.output ?? sendMessageResponse.text ?? '';
|
let textMessage =
|
||||||
|
sendMessageResponse.output ??
|
||||||
|
sendMessageResponse.text ??
|
||||||
|
sendMessageResponse.response?.text ?? // For QA chains
|
||||||
|
'';
|
||||||
|
|
||||||
if (textMessage === '' && Object.keys(sendMessageResponse).length > 0) {
|
if (textMessage === '' && Object.keys(sendMessageResponse).length > 0) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -15,4 +15,7 @@ export interface LoadPreviousSessionResponse {
|
||||||
export interface SendMessageResponse {
|
export interface SendMessageResponse {
|
||||||
output?: string;
|
output?: string;
|
||||||
text?: string;
|
text?: string;
|
||||||
|
response?: {
|
||||||
|
text?: string;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue