Merge pull request #462 from CJackHwang/codex/align-vercel-js-path-with-go-implementation

fix(vercel): align JS stream path guard with Go /chat/completions alias
This commit is contained in:
CJACK.
2026-05-09 18:26:35 +08:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ function isVercelRuntime() {
function isNodeStreamSupportedPath(rawURL) {
const path = extractPathname(rawURL);
return path === '/v1/chat/completions';
return path === '/v1/chat/completions' || path === '/chat/completions';
}
function extractPathname(rawURL) {