mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
This commit is contained in:
parent
4d6129de7b
commit
c214a38eb9
2 changed files with 6 additions and 8 deletions
|
|
@ -45,11 +45,8 @@ func ChatGPT(msg string) (ret string) {
|
|||
return
|
||||
}
|
||||
|
||||
func ChatGPTWithAction(msg string, action string, lang string) (ret string) {
|
||||
prompt := "{action} as follows, the result is in {lang}:\n"
|
||||
prompt = strings.Replace(prompt, "{action}", action, -1)
|
||||
prompt = strings.Replace(prompt, "{lang}", lang, -1)
|
||||
msg = prompt + msg
|
||||
func ChatGPTWithAction(msg string, action string) (ret string) {
|
||||
msg = action + ":\n\n" + msg
|
||||
ret, _ = ChatGPTContinueWrite(msg, nil)
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue