-
Notifications
You must be signed in to change notification settings - Fork 54.3k
fix: 将明确的上游 blocked 类 LLM 测试失败从网络异常中拆分出来,展示为请求被服务商或网关拦截 (#1223) #1224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
ZhuLinsen
wants to merge
5
commits into
main
from
autocode/issue-1223-bug-llm-your-request-was-blocked
Closed
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9f08090
fix(issue-1223): [bug]-llm-渠道测试将-your-request-was-blocked
ZhuLinsen 43f3eab
fix(review-feedback-1224): address latest review comments
ZhuLinsen aea8058
fix(review-feedback-1224): address latest review comments
ZhuLinsen 66b4322
fix(review-feedback-1224): address latest review comments
ZhuLinsen 475dd43
fix(review-feedback-1224): address latest review comments
ZhuLinsen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For upstream responses that say
Request was blocked.orRequest was blocked by regional restrictionswithout the word “your” and without the specific safety/policy suffixes, none of these tokens match, so_classify_llm_exception/_classify_llm_http_errorstill fall through to the generic auth/network paths instead of returningrequest_blocked. The stated acceptance criteria include plain “request was blocked”, so add that broader token (or an equivalent bounded regex) to cover those provider/gateway messages.Useful? React with 👍 / 👎.