MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / MakeHTTPClient

Function MakeHTTPClient

pkg/aiusechat/aiutil/aiutil.go:190–206  ·  view source on GitHub ↗
(proxyURL string)

Source from the content-addressed store, hash-verified

188}
189
190func MakeHTTPClient(proxyURL string) (*http.Client, error) {
191 client := &http.Client{
192 Timeout: 0, // rely on ctx; streaming can be long
193 }
194 if proxyURL == "" {
195 return client, nil
196 }
197
198 pURL, err := url.Parse(proxyURL)
199 if err != nil {
200 return nil, fmt.Errorf("invalid proxy URL: %w", err)
201 }
202 client.Transport = &http.Transport{
203 Proxy: http.ProxyURL(pURL),
204 }
205 return client, nil
206}
207
208func IsOpenAIReasoningModel(model string) bool {
209 m := strings.ToLower(model)

Callers 4

RunGeminiChatStepFunction · 0.92
RunChatStepFunction · 0.92
RunAnthropicChatStepFunction · 0.92
RunOpenAIChatStepFunction · 0.92

Calls 1

ParseMethod · 0.80

Tested by

no test coverage detected