diff --git a/internal/ai/openai.go b/internal/ai/openai.go index 7278e29..622f2c5 100644 --- a/internal/ai/openai.go +++ b/internal/ai/openai.go @@ -41,9 +41,17 @@ type tzResponse struct { } func NewOpenAIClient(apiKey string) *OpenAIClient { + transport := &http.Transport{ + Proxy: http.ProxyFromEnvironment, + } + + client := &http.Client{ + Transport: transport, + } + return &OpenAIClient{ apiKey: apiKey, - client: &http.Client{}, + client: client, } }