mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-27 16:26:16 +08:00
fb02881684
The base URL field was not populating when editing providers with categories like cn_official or aggregator. The issue was caused by inconsistent conditional logic: the input field was shown for all non-official categories, but the value extraction only worked for third_party and custom categories. Changed the category check from allowlist (third_party, custom) to denylist (official) to match the UI display logic. Now ANTHROPIC_BASE_URL correctly populates for all provider categories except official.