This commit is contained in:
Your Name
2026-08-27 15:41:09 +08:00
parent 74ff568ba4
commit 75e214dc08
6 changed files with 303 additions and 111 deletions
+8 -1
View File
@@ -115,8 +115,15 @@ difyStreamExpect(
callDifyStreamPrivate('shouldTryNextProtocol', [[
'errno' => 0,
'http_code' => 400,
], false]) === false,
'business input rejection is not hidden by an alternate protocol attempt'
);
difyStreamExpect(
callDifyStreamPrivate('shouldTryNextProtocol', [[
'errno' => 0,
'http_code' => 404,
], false]) === true,
'an ambiguous endpoint rejected before generation tries the alternate protocol'
'an unavailable path tries the alternate protocol'
);
difyStreamExpect(
callDifyStreamPrivate('shouldTryNextProtocol', [[