We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b72e6b6 commit fcec4c1Copy full SHA for fcec4c1
packages/ai/src/chatTransport.ts
@@ -457,6 +457,8 @@ const BASE_URL_VALIDATION_ERRORS = {
457
credentials: "baseURL must not include username or password credentials",
458
} as const;
459
460
+// Includes standard whitespace plus common invisible separator/control marks
461
+// that can make URLs look valid while behaving unexpectedly.
462
const INTERNAL_WHITESPACE_REGEX = /[\s\u200B\u200C\u200D\u2060\uFEFF]/u;
463
464
function resolvePayloadMapper<
0 commit comments