mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
863df0a2e1
commit
6edcdf7d50
4 changed files with 68 additions and 0 deletions
|
|
@ -57,6 +57,18 @@ func ChatGPTSummary(msg string, lang string) (ret string) {
|
|||
return
|
||||
}
|
||||
|
||||
func ChatGPTBrainStorm(msg string, lang string) (ret string) {
|
||||
msg = "Brainstorm ideas as follows, the result is in {" + lang + "}:\n" + msg
|
||||
ret, _ = ChatGPTContinueWrite(msg, nil)
|
||||
return
|
||||
}
|
||||
|
||||
func ChatGPTFixGrammarSpell(msg string, lang string) (ret string) {
|
||||
msg = "Fix grammar and spelling as follows, the result is in {" + lang + "}:\n" + msg
|
||||
ret, _ = ChatGPTContinueWrite(msg, nil)
|
||||
return
|
||||
}
|
||||
|
||||
func ChatGPTContinueWrite(msg string, contextMsgs []string) (ret string, retContextMsgs []string) {
|
||||
if "" == OpenAIAPIKey {
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue