MCPcopy Index your code
hub / github.com/SMNETSTUDIO/Groq2API / SetProxy

Method SetProxy

pkg/cuhttp/http.go:48–60  ·  view source on GitHub ↗
(proxy string)

Source from the content-addressed store, hash-verified

46}
47
48func (b BasicClient) SetProxy(proxy string) {
49 if proxy == "" {
50 return
51 }
52 parse, err := url.Parse(proxy)
53 if err != nil {
54 return
55 }
56
57 b.client.Transport = &http.Transport{
58 Proxy: http.ProxyURL(parse),
59 }
60}

Callers 6

chatFunction · 0.95
modelsFunction · 0.95
GerOrganizationIdFunction · 0.80
GetSessionTokenFunction · 0.80
ChatCompletionsFunction · 0.80
GetModelsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected