Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

fix: improve provider switch

Bingxi Zhao (Frank)4799aaeef06e
diff --git a/web/app/(utility)/settings/page.tsx b/web/app/(utility)/settings/page.tsx
index d83dca4dc..dfbd0efcf 100644
--- a/web/app/(utility)/settings/page.tsx
+++ b/web/app/(utility)/settings/page.tsx
@@ -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);
}
}}