This commit is contained in:
@@ -41,9 +41,17 @@ type tzResponse struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func NewOpenAIClient(apiKey string) *OpenAIClient {
|
func NewOpenAIClient(apiKey string) *OpenAIClient {
|
||||||
|
transport := &http.Transport{
|
||||||
|
Proxy: http.ProxyFromEnvironment,
|
||||||
|
}
|
||||||
|
|
||||||
|
client := &http.Client{
|
||||||
|
Transport: transport,
|
||||||
|
}
|
||||||
|
|
||||||
return &OpenAIClient{
|
return &OpenAIClient{
|
||||||
apiKey: apiKey,
|
apiKey: apiKey,
|
||||||
client: &http.Client{},
|
client: client,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user