MCPcopy Create free account
hub / github.com/Rfym21/Qwen2API / applyProxyToAxiosConfig

Function applyProxyToAxiosConfig

src/utils/proxy-helper.js:101–108  ·  view source on GitHub ↗
(requestConfig = {}, account)

Source from the content-addressed store, hash-verified

99 };
100 try {
101 const response = await axios.getAdapter('fetch', adaptedConfig)(adaptedConfig);
102 // Existing SSE consumers rely on Node streams for both success and error bodies.
103 if (requestConfig.responseType === 'stream') response.data = Readable.fromWeb(response.data);
104 return response;
105 } catch (error) {
106 if (requestConfig.responseType === 'stream' && error.response?.data?.getReader) {
107 error.response.data = Readable.fromWeb(error.response.data);
108 }
109 throw error;
110 }
111 };

Callers

nothing calls this directly

Calls 1

getProxyAgentFunction · 0.85

Tested by

no test coverage detected