🎨 支持应用内配置人工智能 https://github.com/siyuan-note/siyuan/issues/7714
This commit is contained in:
parent
48b8fc536c
commit
136fdcbb99
1 changed files with 4 additions and 1 deletions
|
@ -57,7 +57,10 @@ func chatGPT(msg string, cloud bool) (ret string) {
|
|||
}
|
||||
|
||||
func chatGPTWithAction(msg string, action string, cloud bool) (ret string) {
|
||||
msg = action + ":\n\n" + msg
|
||||
action = strings.TrimSpace(action)
|
||||
if "" != action {
|
||||
msg = action + ":\n\n" + msg
|
||||
}
|
||||
ret, _, err := chatGPTContinueWrite(msg, nil, cloud)
|
||||
if nil != err {
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue