mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 加入针对内容块的人工智能辅助支持 https://github.com/siyuan-note/siyuan/issues/7566
This commit is contained in:
parent
5c3055d601
commit
20af6b0b7a
3 changed files with 41 additions and 15 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue