go-openai icon indicating copy to clipboard operation
go-openai copied to clipboard

The authToken cannot be passed in when setting the http proxy

Open yxk756 opened this issue 2 years ago • 2 comments

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.

yxk756 avatar Mar 04 '23 04:03 yxk756

You can take a look at my example here.

https://github.com/eryajf/chatgpt-dingtalk/blob/6d4d1df8087e6c661ee4f65b1dc442a7eef6de05/pkg/chatgpt/chatgpt.go#L40-L62

eryajf avatar Mar 04 '23 05:03 eryajf

You can take a look at my example here.

https://github.com/eryajf/chatgpt-dingtalk/blob/6d4d1df8087e6c661ee4f65b1dc442a7eef6de05/pkg/chatgpt/chatgpt.go#L40-L62

谢谢!

yxk756 avatar Mar 04 '23 08:03 yxk756

I'm closing this because it appears to have already been resolved.

vvatanabe avatar Jul 01 '23 21:07 vvatanabe