Merge remote-tracking branch 'upstream/master'
# Conflicts: # open-sse/handlers/chatCore.js # open-sse/providers/registry/index.js # open-sse/services/usage.js
This commit is contained in:
commit
eaf204b83c
114 files changed
+5587
-2184
No files matched your search
@@ -460,6 +460,12 @@ async function testOAuthConnection(connection, effectiveProxy = null) {
|
||||
}
|
||||
|
||||
async function fetchWithConnectionProxy(url, options = {}, effectiveProxy = null) {
|
||||
// Add a 15-second timeout to prevent connection testing from hanging indefinitely
|
||||
// and exhausting the browser/Node.js connection pools.
|
||||
if (!options.signal) {
|
||||
options.signal = AbortSignal.timeout(15000);
|
||||
}
|
||||
|
||||
// Vercel relay: forward via relay URL
|
||||
if (effectiveProxy?.vercelRelayUrl) {
|
||||
const { proxyAwareFetch } = await import("open-sse/utils/proxyFetch.js");
|
||||
|
||||
Reference in new issue
Block a user