feat(advanced-custom): remove fallback option and enhance path matching for advanced custom routes

This commit is contained in:
CaIon
2026-06-18 20:29:24 +08:00
parent 3f2c0aeda7
commit 55b00fcf09
22 changed files with 378 additions and 329 deletions
+14 -17
View File
@@ -138,11 +138,6 @@
"Active models": "Active models",
"active users": "active users",
"Actual Amount": "Actual Amount",
"Plan Price": "Plan Price",
"Amount the user pays to purchase this plan; the actual currency depends on the payment gateway.": "Amount the user pays to purchase this plan; the actual currency depends on the payment gateway.",
"Amount the user pays to purchase this plan (USD).": "Amount the user pays to purchase this plan (USD).",
"Plan Quota": "Plan Quota",
"Total quota included in the plan, usable per billing period. 0 means unlimited.": "Total quota included in the plan, usable per billing period. 0 means unlimited.",
"Actual Model": "Actual Model",
"Actual Model:": "Actual Model:",
"Adapt `-thinking` suffix requests to Anthropic native thinking behavior while keeping billing predictable.": "Adapt `-thinking` suffix requests to Anthropic native thinking behavior while keeping billing predictable.",
@@ -231,7 +226,7 @@
"Advanced Configuration": "Advanced Configuration",
"Advanced Custom": "Advanced Custom",
"Advanced custom configuration is required": "Advanced custom configuration is required",
"Advanced custom configuration requires at least one route or fallback": "Advanced custom configuration requires at least one route or fallback",
"Advanced custom configuration requires at least one route": "Advanced custom configuration requires at least one route",
"Advanced Custom Routes": "Advanced Custom Routes",
"Advanced options": "Advanced options",
"Advanced Options": "Advanced Options",
@@ -286,10 +281,6 @@
"Allocated Memory": "Allocated Memory",
"Allow accountFilter parameter": "Allow accountFilter parameter",
"Allow balance redemption": "Allow balance redemption",
"Allow wallet balance after quota used up": "Allow wallet balance after quota used up",
"Downgrade Group": "Downgrade Group",
"Downgrade to pre-purchase group": "Downgrade to pre-purchase group",
"Downgrade to this group after the subscription expires": "Downgrade to this group after the subscription expires",
"Allow Claude beta query passthrough": "Allow Claude beta query passthrough",
"Allow clients to query configured ratios via `/api/ratio`.": "Allow clients to query configured ratios via `/api/ratio`.",
"Allow HTTP image requests": "Allow HTTP image requests",
@@ -318,6 +309,7 @@
"Allow users to sign in with this provider": "Allow users to sign in with this provider",
"Allow users to sign in with WeChat": "Allow users to sign in with WeChat",
"Allow using models without price configuration": "Allow using models without price configuration",
"Allow wallet balance after quota used up": "Allow wallet balance after quota used up",
"Allowed": "Allowed",
"Allowed Origins": "Allowed Origins",
"Allowed Ports": "Allowed Ports",
@@ -331,6 +323,8 @@
"Amount must be greater than 0": "Amount must be greater than 0",
"Amount of quota to credit to user account.": "Amount of quota to credit to user account.",
"Amount options must be a JSON array": "Amount options must be a JSON array",
"Amount the user pays to purchase this plan (USD).": "Amount the user pays to purchase this plan (USD).",
"Amount the user pays to purchase this plan; the actual currency depends on the payment gateway.": "Amount the user pays to purchase this plan; the actual currency depends on the payment gateway.",
"Amount to pay:": "Amount to pay:",
"An unexpected error occurred": "An unexpected error occurred",
"and": "and",
@@ -542,7 +536,6 @@
"Base URL": "Base URL",
"Base URL is required for this channel type": "Base URL is required for this channel type",
"Base URL is required when an advanced route uses an upstream path": "Base URL is required when an advanced route uses an upstream path",
"Base URL is required when fallback is enabled": "Base URL is required when fallback is enabled",
"Base URL of your Uptime Kuma instance": "Base URL of your Uptime Kuma instance",
"Basic Authentication": "Basic Authentication",
"Basic Configuration": "Basic Configuration",
@@ -791,6 +784,7 @@
"Click save when you're done.": "Click save when you're done.",
"Click save when you're done.": "Click save when you're done.",
"Click the button below to bind your Telegram account": "Click the button below to bind your Telegram account",
"Click to copy": "Click to copy",
"Click to open deployment": "Click to open deployment",
"Click to preview audio": "Click to preview audio",
"Click to preview video": "Click to preview video",
@@ -1336,6 +1330,9 @@
"Doubao custom API address editing unlocked": "Doubao custom API address editing unlocked",
"DoubaoVideo": "DoubaoVideo",
"Double check the configuration below. Your system will be locked until initialization is complete.": "Double check the configuration below. Your system will be locked until initialization is complete.",
"Downgrade Group": "Downgrade Group",
"Downgrade to pre-purchase group": "Downgrade to pre-purchase group",
"Downgrade to this group after the subscription expires": "Downgrade to this group after the subscription expires",
"Download": "Download",
"Draw": "Draw",
"Drawing": "Drawing",
@@ -1774,9 +1771,7 @@
"Failed to update user": "Failed to update user",
"Failure keywords": "Failure keywords",
"Fair": "Fair",
"Fallback": "Fallback",
"Fallback base URL": "Fallback base URL",
"Fallback routing": "Fallback routing",
"Fallback tier": "Fallback tier",
"FAQ": "FAQ",
"FAQ added. Click \"Save Settings\" to apply.": "FAQ added. Click \"Save Settings\" to apply.",
@@ -2864,8 +2859,8 @@
"OpenAI Chat to Anthropic Messages": "OpenAI Chat to Anthropic Messages",
"OpenAI Chat to Gemini Generate Content": "OpenAI Chat to Gemini Generate Content",
"OpenAI Chat to OpenAI Responses": "OpenAI Chat to OpenAI Responses",
"OpenAI Completions": "OpenAI Completions",
"OpenAI Compatible": "OpenAI Compatible",
"OpenAI Completions": "OpenAI Completions",
"OpenAI Embeddings": "OpenAI Embeddings",
"OpenAI Image Edits": "OpenAI Image Edits",
"OpenAI Image Generations": "OpenAI Image Generations",
@@ -3072,7 +3067,9 @@
"Ping Interval (seconds)": "Ping Interval (seconds)",
"Plan": "Plan",
"Plan Name": "Plan Name",
"Plan Price": "Plan Price",
"Plan price must be greater than zero": "Plan price must be greater than zero",
"Plan Quota": "Plan Quota",
"Plan Subtitle": "Plan Subtitle",
"Plan Title": "Plan Title",
"Plan title is required": "Plan title is required",
@@ -4267,6 +4264,7 @@
"Total invitation revenue": "Total invitation revenue",
"Total Log Size": "Total Log Size",
"Total Quota": "Total Quota",
"Total quota included in the plan, usable per billing period. 0 means unlimited.": "Total quota included in the plan, usable per billing period. 0 means unlimited.",
"Total requests allowed per period. 0 = unlimited.": "Total requests allowed per period. 0 = unlimited.",
"Total requests made": "Total requests made",
"Total tokens": "Total tokens",
@@ -4408,10 +4406,10 @@
"Upstream Model Update Check": "Upstream Model Update Check",
"Upstream Model Updates": "Upstream Model Updates",
"Upstream model updates applied: {{added}} added, {{removed}} removed, {{ignored}} ignored this time, {{totalIgnored}} total ignored models": "Upstream model updates applied: {{added}} added, {{removed}} removed, {{ignored}} ignored this time, {{totalIgnored}} total ignored models",
"Upstream price sync": "Upstream price sync",
"Upstream path": "Upstream path",
"Upstream path is required": "Upstream path is required",
"Upstream path must be a full URL or a path starting with /": "Upstream path must be a full URL or a path starting with /",
"Upstream price sync": "Upstream price sync",
"Upstream prices fetched successfully": "Upstream prices fetched successfully",
"Upstream ratios fetched successfully": "Upstream ratios fetched successfully",
"Upstream Request ID": "Upstream Request ID",
@@ -4443,8 +4441,8 @@
"USD price per 1M input tokens.": "USD price per 1M input tokens.",
"USD price per 1M tokens.": "USD price per 1M tokens.",
"Use +: to add a group, -: to remove a default selectable group, or no prefix to append a group.": "Use +: to add a group, -: to remove a default selectable group, or no prefix to append a group.",
"Use a path to append it to the channel Base URL, or enter a full URL to override the Base URL for this route.": "Use a path to append it to the channel Base URL, or enter a full URL to override the Base URL for this route.",
"Use a compatible browser or device with biometric authentication or a security key to register a Passkey.": "Use a compatible browser or device with biometric authentication or a security key to register a Passkey.",
"Use a path to append it to the channel Base URL, or enter a full URL to override the Base URL for this route.": "Use a path to append it to the channel Base URL, or enter a full URL to override the Base URL for this route.",
"Use authenticator code": "Use authenticator code",
"Use backup code": "Use backup code",
"Use disk cache when request body exceeds this size": "Use disk cache when request body exceeds this size",
@@ -4657,7 +4655,6 @@
"When enabled, Midjourney callbacks are accepted (reveals server IP).": "When enabled, Midjourney callbacks are accepted (reveals server IP).",
"When enabled, newly created tokens start in the first auto group.": "When enabled, newly created tokens start in the first auto group.",
"When enabled, prompts are scanned before reaching upstream models.": "When enabled, prompts are scanned before reaching upstream models.",
"When enabled, requests that do not match any advanced route are forwarded to the channel base URL. When disabled, unmatched requests return an error.": "When enabled, requests that do not match any advanced route are forwarded to the channel base URL. When disabled, unmatched requests return an error.",
"When enabled, the store field will be blocked": "When enabled, the store field will be blocked",
"When enabled, users can pick this group when creating tokens.": "When enabled, users can pick this group when creating tokens.",
"When enabled, violation requests will incur additional charges.": "When enabled, violation requests will incur additional charges.",