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,
|
||||
);
|
||||
|
||||
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) {
|
||||
try {
|
||||
|
|
|
@ -15,4 +15,7 @@ export interface LoadPreviousSessionResponse {
|
|||
export interface SendMessageResponse {
|
||||
output?: string;
|
||||
text?: string;
|
||||
response?: {
|
||||
text?: string;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue