🎨 加入针对内容块的人工智能辅助支持 https://github.com/siyuan-note/siyuan/issues/7566

This commit is contained in:
Liang Ding 2023-03-08 21:28:29 +08:00
parent 5c3055d601
commit 20af6b0b7a
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 41 additions and 15 deletions

View file

@ -37,7 +37,7 @@ var (
OpenAIAPIBaseURL = "https://api.openai.com/v1"
)
func ChatGPT(msg string, contextMsgs []string, c *gogpt.Client) (ret string, stop bool) {
func ChatGPT(msg string, contextMsgs []string, c *gogpt.Client) (ret string, stop bool, err error) {
var reqMsgs []gogpt.ChatCompletionMessage
for _, ctxMsg := range contextMsgs {