文件 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