go-openai
go-openai copied to clipboard
The authToken cannot be passed in when setting the http proxy
authToken cannot be passed in when setting http proxy. When setting custom config using NewClientWithConfig(), authToken cannot be set externally because authToken is in lower case. You want to provide a way to set authToken.
You can take a look at my example here.
https://github.com/eryajf/chatgpt-dingtalk/blob/6d4d1df8087e6c661ee4f65b1dc442a7eef6de05/pkg/chatgpt/chatgpt.go#L40-L62
You can take a look at my example here.
https://github.com/eryajf/chatgpt-dingtalk/blob/6d4d1df8087e6c661ee4f65b1dc442a7eef6de05/pkg/chatgpt/chatgpt.go#L40-L62
谢谢!
I'm closing this because it appears to have already been resolved.