-
-
Notifications
You must be signed in to change notification settings - Fork 181
feat(error-rules): 添加错误响应覆盖功能 #225
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
Merged
ding113
merged 16 commits into
ding113:feat/error_overide
from
sususu98:feat/error_overide
Nov 28, 2025
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
46e1203
chore: sync VERSION file with release v0.3.10 [skip ci]
github-actions[bot] a9ce9f2
docs: update changelog for PR #199
github-actions[bot] c1121d0
chore: sync VERSION file with release v0.3.11 [skip ci]
github-actions[bot] d53db33
docs: update changelog for PR #207
github-actions[bot] 2a95578
chore: sync VERSION file with release v0.3.12 [skip ci]
github-actions[bot] 40bce74
docs: update changelog for PR #210
github-actions[bot] 0af0286
chore: sync VERSION file with release v0.3.13 [skip ci]
github-actions[bot] e28bea4
docs: update changelog for PR #216
github-actions[bot] 3415bdd
chore: sync VERSION file with release v0.3.14 [skip ci]
github-actions[bot] 6e31b0b
docs: update changelog for PR #219
github-actions[bot] cf3a4a7
chore: sync VERSION file with release v0.3.15 [skip ci]
github-actions[bot] 8f903da
docs: update changelog for PR #220
github-actions[bot] 5b0940f
ci: trigger CI after format fix
github-actions[bot] 0c72766
chore: update environment variable loading to follow Next.js priority…
sususu98 a652941
feat(error-rules): add error override feature
sususu98 ed213b6
chore: format code (feat-error-overide-f3f37a7)
github-actions[bot] 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
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -6,17 +6,50 @@ All notable changes to this project will be documented in this file. | |||||||
|
|
||||||||
| ### Added | ||||||||
|
|
||||||||
| - Add provider availability monitoring dashboard with real-time health status, metrics, and heatmap visualization (#216) @ding113 | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这是一个很棒的新功能,但它似乎没有被记录在
Suggested change
|
||||||||
| - Add smart circuit breaker probing for faster provider recovery with configurable intervals (#216) @ding113 | ||||||||
| - Add enhanced provider testing with three-layer validation and preset templates for relay service verification (#216) @ding113 | ||||||||
| - Add real-time monitoring big screen dashboard with live metrics, 24h trends, provider slots status, and activity stream (#184) @ding113 | ||||||||
| - Add dark mode support with theme switcher in Dashboard and settings pages (#171) @ding113 | ||||||||
| - Add MCP (Model Context Protocol) passthrough functionality to forward tool calls to third-party AI services (#193) @ding113 | ||||||||
| - Add provider API test improvements with streaming response detection and enhanced error parsing (#199) @ding113 | ||||||||
| - Add configurable API test timeout via `API_TEST_TIMEOUT_MS` environment variable (#199) @ding113 | ||||||||
|
|
||||||||
| ### Changed | ||||||||
|
|
||||||||
| - Improve provider page performance by fixing N+1 queries and SQL full table scans (#216) @ding113 | ||||||||
| - Enhance error parsing with nested error structure support for relay services (#216) @ding113 | ||||||||
| - Adjust streaming idle timeout range from 1-120s to 60-600s (0 to disable) (#216) @ding113 | ||||||||
| - Add provider-specific User-Agent headers to avoid Cloudflare detection (#210) @ding113 | ||||||||
| - Increase provider dialog width to prevent horizontal scrollbar on long model redirect names (#210) @ding113 | ||||||||
| - Enhance data dashboard with comprehensive optimizations and improvements (#183) @ding113 | ||||||||
| - Update default provider timeout to unlimited for better compatibility (#199) @ding113 | ||||||||
| - Adjust streaming silent period timeout from 10s to 300s (#199) @ding113 | ||||||||
| - Improve usage records status code color display for better visibility (#199) @ding113 | ||||||||
| - Clarify provider response model labeling (#199) @ding113 | ||||||||
|
|
||||||||
| ### Fixed | ||||||||
|
|
||||||||
| - Fix session binding not updating after provider failover, causing repeated attempts to failed providers (#220) @ding113 | ||||||||
| - Fix provider availability monitoring page sorting order so high-availability providers rank first (#219) @ding113 | ||||||||
| - Fix provider daily usage statistics JSONB field name error (#216) @ding113 | ||||||||
| - Fix response content validation failure in provider testing (#216) @ding113 | ||||||||
| - Fix login redirect displaying duplicate language prefix (#216) @ding113 | ||||||||
| - Fix zh-TW missing 8 translation keys for apiTest (#216) @ding113 | ||||||||
| - Remove DialogContent hardcoded `sm:max-w-lg` width constraint (#216) @ding113 | ||||||||
| - Fix model test disclaimer display order (#210) @ding113 | ||||||||
| - Fix provider statistics, group settings persistence, and usage records date filtering; consolidate migrations 0020-0025 into single idempotent file (#207) @ding113 | ||||||||
| - Fix database migration duplicate enum type creation error (#181) @ding113 | ||||||||
| - Fix error handling and status codes in response handler, improve user management page UX (#179) @ding113 | ||||||||
| - Fix infinite loop in leaderboard tab switching (#178) @ding113 | ||||||||
| - Fix CI failures: Prettier formatting and React Hooks ESLint error in theme-switcher (#173) @ding113 | ||||||||
| - Fix Gemini model redirect not working correctly (#199) @ding113 | ||||||||
| - Fix model redirect info not being saved to database (#199) @ding113 | ||||||||
| - Fix provider multi-tag matching issue (#199) @ding113 | ||||||||
| - Fix error rules regex matching and cache refresh issues (#199) @ding113 | ||||||||
| - Fix proxy fallback "Body has already been read" error (#199) @ding113 | ||||||||
| - Fix ErrorRuleDetector lazy initialization race condition (#199) @ding113 | ||||||||
| - Fix Anthropic API test sending duplicate auth headers (#199) @ding113 | ||||||||
| - Fix Codex API test request body format (#199) @ding113 | ||||||||
| - Fix Pino logger timestamp configuration placement (#199) @ding113 | ||||||||
| - Fix data import cross-version compatibility and error prompts (#199) @ding113 | ||||||||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 0.3.9 | ||
| 0.3.15 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| ALTER TABLE "error_rules" ADD COLUMN "override_response" jsonb;--> statement-breakpoint | ||
| ALTER TABLE "error_rules" ADD COLUMN "override_status_code" integer; |
Oops, something went wrong.
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.
🔴 Missing Feature Documentation: PR #225 feature not documented in CHANGELOG
Problem: This PR adds a significant new feature "Error Response Override" (错误响应覆盖) that allows users to customize error responses and status codes when error rules match. However, the CHANGELOG.md does not include any entry for this PR's main feature.
The PR:
override_responseandoverride_status_codedatabase fieldsImpact: Users reviewing the changelog will not be aware of this new capability, which defeats the purpose of maintaining a changelog.
Suggested Fix:
Add an entry under
### Addedsection:Or more detailed: