mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-13 12:47:41 +08:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user