Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 350 Bytes

_EDIT.md

File metadata and controls

18 lines (15 loc) · 350 Bytes

修改记录

文件 config.go

// 2023-08-10
func NewClient(authToken string, baseURL string) *Client {
    config := DefaultConfig(authToken)
+    if baseURL != ""{
+       config.BaseURL = baseURL
+    }
    return NewClientWithConfig(config)
}

github.com/sashabaranov/go-openai 改为 github.com/tangwenru/go-openai