mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
This commit is contained in:
parent
436f487171
commit
cc1bb7775a
3 changed files with 11 additions and 3 deletions
|
|
@ -24,6 +24,11 @@ import (
|
|||
)
|
||||
|
||||
func ChatGPTContinueWriteBlocks(ids []string) (ret string) {
|
||||
if "" == util.OpenAIAPIKey {
|
||||
util.PushMsg(Conf.Language(193), 5000)
|
||||
return
|
||||
}
|
||||
|
||||
sqlBlocks := sql.GetBlocks(ids)
|
||||
|
||||
buf := bytes.Buffer{}
|
||||
|
|
@ -37,5 +42,10 @@ func ChatGPTContinueWriteBlocks(ids []string) (ret string) {
|
|||
return
|
||||
}
|
||||
func ChatGPT(msg string) (ret string) {
|
||||
if "" == util.OpenAIAPIKey {
|
||||
util.PushMsg(Conf.Language(193), 5000)
|
||||
return
|
||||
}
|
||||
|
||||
return util.ChatGPT(msg)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue