mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-06 02:40:52 +08:00
fix: improve provider switch
This commit is contained in:
@@ -1030,7 +1030,7 @@ function SettingsPageContent() {
|
||||
const field = activeService === "search" ? "provider" : "binding";
|
||||
updateProfileField(field, val);
|
||||
const match = (providers[activeService] || []).find((p) => p.value === val);
|
||||
if (match?.base_url && !activeProfile.base_url) {
|
||||
if (match?.base_url) {
|
||||
updateProfileField("base_url", match.base_url);
|
||||
}
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user