MCPcopy Create free account
hub / github.com/SMNETSTUDIO/Groq2API / NewBasicClient

Function NewBasicClient

pkg/groq/http.go:13–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11}
12
13func NewBasicClient() tls_client.HttpClient {
14 jar := tls_client.NewCookieJar()
15 options := []tls_client.HttpClientOption{
16 tls_client.WithTimeoutSeconds(30),
17 tls_client.WithClientProfile(profiles.Okhttp4Android13),
18 tls_client.WithNotFollowRedirects(),
19 tls_client.WithCookieJar(jar), // create cookieJar instance and pass it as argument
20 }
21 client, err := tls_client.NewHttpClient(tls_client.NewNoopLogger(), options...)
22 if err != nil {
23 slog.Error("err while init tls client", err)
24 }
25 return client
26}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected