This commit is contained in:
Liang Ding 2023-03-06 11:28:27 +08:00
parent 863df0a2e1
commit 6edcdf7d50
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 68 additions and 0 deletions

View file

@ -25,6 +25,26 @@ import (
"github.com/siyuan-note/siyuan/kernel/util"
)
func ChatGPTFixGrammarSpell(ids []string) (ret string) {
if !isOpenAIAPIEnabled() {
return
}
msg := getBlocksContent(ids)
ret = util.ChatGPTFixGrammarSpell(msg, Conf.Lang)
return
}
func ChatGPTBrainStorm(ids []string) (ret string) {
if !isOpenAIAPIEnabled() {
return
}
msg := getBlocksContent(ids)
ret = util.ChatGPTBrainStorm(msg, Conf.Lang)
return
}
func ChatGPTSummary(ids []string) (ret string) {
if !isOpenAIAPIEnabled() {
return