diff --git a/frontend/src/views/chat/components/Chat/Chat.vue b/frontend/src/views/chat/components/Chat/Chat.vue index f1bec4f779..eca7fd10f6 100644 --- a/frontend/src/views/chat/components/Chat/Chat.vue +++ b/frontend/src/views/chat/components/Chat/Chat.vue @@ -80,7 +80,6 @@ const hackDevMode = () => { const initChatService = () => { if (selectedSydneyBaseUrl.value) { CIB.config.sydney.baseUrl = selectedSydneyBaseUrl.value; - CIB.config.bing.baseUrl = location.origin; isShowChatServiceSelectModal.value = false; } else { isShowChatServiceSelectModal.value = true; @@ -94,6 +93,13 @@ const initChatService = () => { } chatStore.checkAllSydneyConfig(); } + CIB.config.bing.baseUrl = location.origin; + CIB.config.bing.signIn.baseUrl = location.origin; + CIB.config.answers.baseUrl = location.origin; + CIB.config.answers.secondTurnScreenshotBaseUrl = location.origin; + CIB.config.contentCreator.baseUrl = location.origin; + CIB.config.visualSearch.baseUrl = location.origin; + CIB.config.suggestionsv2.baseUrl = location.origin; }; const initSysConfig = async () => { @@ -140,7 +146,6 @@ const hackStyle = () => { serpEle?.shadowRoot?.querySelector('cib-serp-feedback')?.remove(); if (isMobile()) { welcomeEle?.shadowRoot?.querySelector('.container-item')?.remove(); - // serpEle?.querySelector('.b_wlcmTileCont')?.remove(); CIB.vm.actionBar.input.placeholder = '有问题尽管问我...("/" 触发提示词)'; } // 加入css diff --git a/frontend/types/bing/index.d.ts b/frontend/types/bing/index.d.ts index 82df710a85..a8c15cf4c1 100644 --- a/frontend/types/bing/index.d.ts +++ b/frontend/types/bing/index.d.ts @@ -196,8 +196,18 @@ declare const CIB: { }; }; config: { + answers: { + baseUrl: string; + secondTurnScreenshotBaseUrl: string; + }; bing: { baseUrl: string; + signIn: { + baseUrl: string; + }; + }; + contentCreator: { + baseUrl: string; }; edgeAction: { /** @@ -213,6 +223,9 @@ declare const CIB: { */ enableGetChats: boolean; }; + suggestionsv2: { + baseUrl: string; + }; sydney: { baseUrl: string; /** @@ -231,6 +244,9 @@ declare const CIB: { */ messageBufferWorkerStreamDelayMS: number; }; + visualSearch: { + baseUrl: string; + } }; manager: { chat: BingChat;