mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-22 00:06:09 +01:00
✨ 桌面端接入 OpenAI Chat API https://github.com/siyuan-note/siyuan/issues/7560
This commit is contained in:
parent
1a0f176a05
commit
9a67ec3c09
7 changed files with 21 additions and 6 deletions
|
|
@ -569,7 +569,11 @@ ${unicode2Emoji(emoji.unicode, true)}</button>`;
|
|||
}, (response) => {
|
||||
dialog.destroy();
|
||||
focusByRange(protyle.toolbar.range);
|
||||
insertHTML(`${inputElement.value}\n\n${response.data}`, protyle, true);
|
||||
let respContent = "";
|
||||
if (response.data && "" !== response.data) {
|
||||
respContent = "\n\n" + response.data;
|
||||
}
|
||||
insertHTML(`${inputElement.value}${respContent}`, protyle, true);
|
||||
});
|
||||
});
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue