add service
Some checks failed
Deploy Smart Search Backend Test / deploy (push) Has been cancelled

This commit is contained in:
vallyenfail
2026-01-20 11:21:34 +03:00
parent 633bb3bb85
commit 78aee154a9

View File

@@ -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,
} }
} }