mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-23 16:56:10 +01:00
This commit is contained in:
parent
b2599d6750
commit
f5c17d4693
1 changed files with 1 additions and 5 deletions
|
|
@ -55,11 +55,7 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => {
|
|||
action: inputElement.value,
|
||||
}, (response) => {
|
||||
dialog.destroy();
|
||||
let respContent = "";
|
||||
if (response.data && "" !== response.data) {
|
||||
respContent = "\n\n" + response.data;
|
||||
}
|
||||
fillContent(protyle, `${inputElement.value}${respContent}`, elements);
|
||||
fillContent(protyle, response.data || "", elements);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue