fix(provider): remove default HTTP client timeout setting and unnecessary check of context

This commit is contained in:
tong3jie 2026-03-23 11:46:18 +08:00
parent 54ec4797e7
commit 8911b44a27

View file

@ -122,7 +122,6 @@ func NewProvider(apiKey, apiBase, proxy string, opts ...Option) *Provider {
apiBase: strings.TrimRight(apiBase, "/"),
httpClient: retryClient.StandardClient(),
}
p.httpClient.Timeout = defaultRequestTimeout
for _, opt := range opts {
if opt != nil {
opt(p)