From f2c53a812dca76bdfd57e01fe19a5d1497300d39 Mon Sep 17 00:00:00 2001 From: ranxi2001 Date: Sun, 15 Nov 2026 02:43:11 +0800 Subject: [PATCH 01/12] =?UTF-8?q?feat:=20=E6=8E=A5=E5=85=A5=20BPS=20?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E7=AE=A1=E7=90=86=E5=BC=80=E5=85=B3=E4=B8=8E?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/bps-search.yml | 62 +++++++++++++++++++ .../internal/service/account_quality_bps.go | 6 ++ .../service/bps_search_settings_test.go | 32 ++++++++++ .../internal/service/oauth_auto_config_bps.go | 4 ++ .../account/BulkEditAccountModal.vue | 9 +++ .../components/account/EditAccountModal.vue | 18 +++++- .../account/ExcelBPSSearchOptions.vue | 30 +++++++++ .../__tests__/BulkEditAccountModal.spec.ts | 3 +- .../__tests__/EditAccountModal.spec.ts | 3 +- .../__tests__/ExcelBPSSearchOptions.spec.ts | 31 ++++++++++ .../admin/operations/BPSDefaultsCard.vue | 2 + .../admin/operations/QualityBPSSettings.vue | 2 + .../common/__tests__/NewFeatureBadge.spec.ts | 1 + frontend/src/constants/newFeatureNotices.ts | 1 + .../src/i18n/locales/en/admin/accounts.ts | 4 ++ .../src/i18n/locales/zh/admin/accounts.ts | 4 ++ frontend/src/types/index.ts | 2 + frontend/src/utils/excelBPSDefaults.ts | 6 +- 18 files changed, 215 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/bps-search.yml create mode 100644 backend/internal/service/bps_search_settings_test.go create mode 100644 frontend/src/components/account/ExcelBPSSearchOptions.vue create mode 100644 frontend/src/components/account/__tests__/ExcelBPSSearchOptions.spec.ts diff --git a/.github/workflows/bps-search.yml b/.github/workflows/bps-search.yml new file mode 100644 index 000000000000..9df2a6fc2c2a --- /dev/null +++ b/.github/workflows/bps-search.yml @@ -0,0 +1,62 @@ +name: BPS search protocol and settings +on: + pull_request: + paths: + - backend/internal/service/basispoints/web_search* + - backend/internal/service/openai_excel_bps_search* + - backend/internal/service/bps_search_settings_test.go + - frontend/src/components/account/ExcelBPSSearchOptions.vue + - frontend/src/components/account/__tests__/ExcelBPSSearchOptions.spec.ts + - frontend/src/utils/excelBPSDefaults.ts + - .github/scripts/bps-search-preview.mjs + - .github/workflows/bps-search.yml +permissions: + contents: read +jobs: + search-protocol: + runs-on: ubuntu-latest + timeout-minutes: 25 + steps: + - uses: actions/checkout@v6 + with: + ref: ${{ github.event.pull_request.head.sha }} + - uses: actions/setup-go@v6 + with: + go-version-file: backend/go.mod + cache-dependency-path: backend/go.sum + - working-directory: backend + run: go test -race ./internal/service/basispoints -run 'Test(WebSearch|AlphaSearch|ToolChoice|CurrentEncrypted|CompactionPolicy)' -count=1 -v + - working-directory: backend + run: go test -race -tags=unit ./internal/service -run 'Test(ExcelBPSAccountSearch|ExcelBPSSearch|BPSSearchDefaults)' -count=1 -v -timeout=10m + search-ui: + runs-on: ubuntu-latest + timeout-minutes: 20 + steps: + - uses: actions/checkout@v6 + with: + ref: ${{ github.event.pull_request.head.sha }} + - uses: pnpm/action-setup@v6 + with: + version: 9 + - uses: actions/setup-node@v6 + with: + node-version: '22' + cache: pnpm + cache-dependency-path: frontend/pnpm-lock.yaml + - run: pnpm --dir frontend install --frozen-lockfile + - run: pnpm --dir frontend exec vitest run src/components/account/__tests__/ExcelBPSSearchOptions.spec.ts src/components/common/__tests__/NewFeatureBadge.spec.ts src/components/account/__tests__/EditAccountModal.spec.ts src/components/account/__tests__/BulkEditAccountModal.spec.ts src/views/admin/__tests__/AutoConfigView.spec.ts src/composables/__tests__/useExcelBPSDefaults.spec.ts src/i18n/__tests__/localeKeyCompleteness.spec.ts + - run: pnpm --dir frontend typecheck + - name: Install isolated screenshot browser + run: | + npm install --prefix "$RUNNER_TEMP/bps-search-browser" --no-save --ignore-scripts playwright@1.56.1 + node "$RUNNER_TEMP/bps-search-browser/node_modules/playwright/cli.js" install --with-deps chromium + - name: Render actual BPS search settings + env: + SUB2API_PLAYWRIGHT_MODULE: ${{ runner.temp }}/bps-search-browser/node_modules/playwright/index.mjs + run: node .github/scripts/bps-search-preview.mjs "$GITHUB_WORKSPACE" "$RUNNER_TEMP/bps-search-evidence" + - uses: actions/upload-artifact@v7 + if: always() + with: + name: bps-search-evidence-${{ github.event.pull_request.head.sha }} + path: ${{ runner.temp }}/bps-search-evidence + retention-days: 30 diff --git a/backend/internal/service/account_quality_bps.go b/backend/internal/service/account_quality_bps.go index 746236509b8a..2736a49ea1d0 100644 --- a/backend/internal/service/account_quality_bps.go +++ b/backend/internal/service/account_quality_bps.go @@ -26,6 +26,8 @@ type QualityBPSPolicy struct { AllModels bool `json:"all_models"` Models []string `json:"models"` OmitUnsupportedTools bool `json:"omit_unsupported_tools"` + WebSearch bool `json:"web_search"` + WebSearchAuto bool `json:"web_search_auto"` IgnoreEncryptedContent bool `json:"ignore_encrypted_content"` AutoDisableOn403 bool `json:"auto_disable_on_403"` AutoRecoverOn403 bool `json:"auto_recover_on_403"` @@ -44,6 +46,8 @@ var QualityBPSManagedKeys = []string{ "openai_excel_bps_models", ExcelBPSOmitUnsupportedToolsKey, ExcelBPSIgnoreEncryptedContentKey, + ExcelBPSWebSearchKey, + ExcelBPSWebSearchAutoKey, "openai_excel_bps_auto_disable_on_403", ExcelBPSAutoRecoverOn403Key, ExcelBPS403RecoveryIntervalMinutesKey, @@ -127,6 +131,8 @@ func QualityBPSExtra(b *QualityBPSPolicy) map[string]any { interval = *b.RecoveryIntervalMinutes } extra := map[string]any{ + ExcelBPSWebSearchKey: b.WebSearch, + ExcelBPSWebSearchAutoKey: b.WebSearch && b.WebSearchAuto, ExcelBPS403RecoveryIntervalMinutesKey: interval, "openai_excel_bps": true, "openai_excel_bps_models": nil, diff --git a/backend/internal/service/bps_search_settings_test.go b/backend/internal/service/bps_search_settings_test.go new file mode 100644 index 000000000000..de07b56d2cd2 --- /dev/null +++ b/backend/internal/service/bps_search_settings_test.go @@ -0,0 +1,32 @@ +package service + +import ( + "encoding/json" + "testing" + + "github.com/stretchr/testify/require" +) + +func TestBPSSearchDefaultsAndQualityPolicyRoundTrip(t *testing.T) { + defaults := DefaultExcelBPSDefaults() + require.False(t, defaults.WebSearch) + require.False(t, defaults.WebSearchAuto) + for _, enabled := range []bool{false, true} { + defaults.WebSearch, defaults.WebSearchAuto = enabled, true + raw, err := json.Marshal(defaults) + require.NoError(t, err) + var restored ExcelBPSDefaults + require.NoError(t, json.Unmarshal(raw, &restored)) + require.Equal(t, enabled, restored.extra()[ExcelBPSWebSearchKey]) + require.Equal(t, enabled, restored.extra()[ExcelBPSWebSearchAutoKey]) + extra := QualityBPSExtra(&QualityBPSPolicy{WebSearch: enabled, WebSearchAuto: true}) + require.Equal(t, enabled, extra[ExcelBPSWebSearchKey]) + require.Equal(t, enabled, extra[ExcelBPSWebSearchAutoKey]) + } + require.Contains(t, QualityBPSManagedKeys, ExcelBPSWebSearchKey) + require.Contains(t, QualityBPSManagedKeys, ExcelBPSWebSearchAutoKey) + var legacy ExcelBPSDefaults + require.NoError(t, json.Unmarshal([]byte(`{"models":["gpt-6-astra"]}`), &legacy)) + require.False(t, legacy.WebSearch) + require.False(t, legacy.WebSearchAuto) +} diff --git a/backend/internal/service/oauth_auto_config_bps.go b/backend/internal/service/oauth_auto_config_bps.go index a1d6485062b5..b2fa8e5551ea 100644 --- a/backend/internal/service/oauth_auto_config_bps.go +++ b/backend/internal/service/oauth_auto_config_bps.go @@ -13,6 +13,8 @@ type ExcelBPSDefaults struct { AllModels bool `json:"all_models"` Models []string `json:"models"` OmitUnsupportedTools bool `json:"omit_unsupported_tools"` + WebSearch bool `json:"web_search"` + WebSearchAuto bool `json:"web_search_auto"` IgnoreEncryptedContent bool `json:"ignore_encrypted_content"` AutoDisableOn403 bool `json:"auto_disable_on_403"` AutoRecoverOn403 bool `json:"auto_recover_on_403"` @@ -63,6 +65,8 @@ func validateExcelBPSDefaults(b ExcelBPSDefaults) error { func (b ExcelBPSDefaults) extra() map[string]any { extra := map[string]any{ + ExcelBPSWebSearchKey: b.WebSearch, + ExcelBPSWebSearchAutoKey: b.WebSearch && b.WebSearchAuto, "openai_excel_bps": true, "openai_excel_bps_omit_unsupported_tools": b.OmitUnsupportedTools, "openai_excel_bps_ignore_encrypted_content": b.IgnoreEncryptedContent, diff --git a/frontend/src/components/account/BulkEditAccountModal.vue b/frontend/src/components/account/BulkEditAccountModal.vue index 9a11746ebd7a..12e9996ffcf7 100644 --- a/frontend/src/components/account/BulkEditAccountModal.vue +++ b/frontend/src/components/account/BulkEditAccountModal.vue @@ -66,6 +66,7 @@

{{ t('admin.accounts.openai.excelBPSModelsHint') }}

{{ t('admin.accounts.openai.excelBPSNotice') }}

+

{{ t('admin.accounts.openai.excelBPSNotice') }}

+
+
{{ t('autoConfig.bps.advanced') }}{{ t('autoConfig.bps.advancedHint') }}
@@ -49,6 +50,7 @@ ') } + else if (request.url === '/favicon.ico') { response.statusCode = 204; response.end() } + else next() + }) } }, vue()], server: { host: '127.0.0.1', port: 4299, strictPort: true }, + optimizeDeps: { entries: [], include: ['vue','pinia','vue-i18n','axios','@vue/test-utils'] } }) + await server.listen(); browser = await chromium.launch({ headless: true }) + const page = await browser.newPage({ viewport: { width: 900, height: 620 } }), errors = [] + page.on('pageerror', error => errors.push(error.message)) + await page.route('**/*', route => new URL(route.request().url()).origin === 'http://127.0.0.1:4299' ? route.continue() : route.abort()) + await page.goto('http://127.0.0.1:4299', { waitUntil: 'networkidle' }) + await page.getByTestId('bps-search-options').waitFor() + await page.screenshot({ path: join(output,'default-off.png'), fullPage: true }) + await page.getByTestId('excel-bps-web-search').check() + await page.getByTestId('excel-bps-web-search-auto').check() + await page.screenshot({ path: join(output,'search-and-auto.png'), fullPage: true }) + await page.evaluate(() => document.documentElement.classList.add('dark')) + await page.screenshot({ path: join(output,'dark.png'), fullPage: true }) + await page.setViewportSize({ width: 390, height: 700 }) + await page.screenshot({ path: join(output,'mobile.png'), fullPage: true }) + await page.getByTestId('excel-bps-web-search').uncheck() + if (await page.getByTestId('excel-bps-web-search-auto').isChecked()) throw Error('Automatic search remained enabled') + if (errors.length) throw Error(JSON.stringify(errors)) + writeFileSync(join(output,'evidence.json'),JSON.stringify({ source:execFileSync('git',['rev-parse','HEAD'],{cwd:repo,encoding:'utf8'}).trim(),fixture:true,errors,states:['default-off','search-and-auto','dark','mobile'],production:false },null,2)) +} finally { + await browser?.close(); await server?.close() + rmSync(join(root,entry),{force:true}); rmSync(cacheDir,{recursive:true,force:true}) +} From d0ba7408e4beeabdc6cc4b386a908a455e7c2a73 Mon Sep 17 00:00:00 2001 From: ranxi2001 Date: Sun, 15 Nov 2026 02:45:18 +0800 Subject: [PATCH 03/12] =?UTF-8?q?fix:=20=E4=BF=9D=E7=95=99=E8=B4=A8?= =?UTF-8?q?=E9=87=8F=E8=A7=84=E5=88=99=E6=90=9C=E7=B4=A2=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=B9=B6=E8=A1=A5=E7=AE=A1=E7=90=86=E5=85=A5=E5=8F=A3=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/internal/service/basispoints/WEB_SEARCH.md | 8 ++++++++ frontend/src/utils/qualityRulePatch.ts | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/backend/internal/service/basispoints/WEB_SEARCH.md b/backend/internal/service/basispoints/WEB_SEARCH.md index e5d04c670108..3e98b16999ef 100644 --- a/backend/internal/service/basispoints/WEB_SEARCH.md +++ b/backend/internal/service/basispoints/WEB_SEARCH.md @@ -55,3 +55,11 @@ provide an established billable token contract here; no synthetic token charge is invented for it. Any provider-side search cost/entitlement needs separate operational verification before enabling accounts. No real paid call is part of CI or local validation. + +## Management entry points + +The account editor, bulk editor, OAuth BPS defaults card and quality-rule BPS +settings share the same search controls. Automatic search is disabled and cleared +when its parent search switch is off. Quality-rule snapshots manage both fields. +The notice ID `bps-account-search-initial-announcement` is shared across these +entry points and dismissed per administrator/browser using existing localStorage. diff --git a/frontend/src/utils/qualityRulePatch.ts b/frontend/src/utils/qualityRulePatch.ts index c81313faeabf..7dc5d23704ae 100644 --- a/frontend/src/utils/qualityRulePatch.ts +++ b/frontend/src/utils/qualityRulePatch.ts @@ -12,7 +12,7 @@ export function qualityJudgeConfigured(judge?: QualityJudgeConfig): judge is Qua // 新建「降智开 BPS」时的默认勾选;target_group_id = -1 表示还没选 403 后的目标分组。 export function defaultQualityBPS(): QualityBPSPolicy { return { failure_threshold: 2, usage_percent: 0, require_all: false, all_models: false, models: [...DEFAULT_EXCEL_BPS_MODELS], - omit_unsupported_tools: false, ignore_encrypted_content: true, auto_disable_on_403: true, auto_recover_on_403: false, recovery_interval_minutes: DEFAULT_BPS_RECOVERY_INTERVAL_MINUTES, auto_move_on_403: false, + omit_unsupported_tools: false, ignore_encrypted_content: true, web_search: false, web_search_auto: false, auto_disable_on_403: true, auto_recover_on_403: false, recovery_interval_minutes: DEFAULT_BPS_RECOVERY_INTERVAL_MINUTES, auto_move_on_403: false, target_group_id: -1, session_proxy: false, proxy_source: 'mihomo', cache_creation_as_input: true, pass_threshold: 2, hold_on_usage: true } } @@ -56,6 +56,7 @@ export function copyQualityRuleConfig(source: PelicanTestConfig): PelicanTestCon bps: bps ? { failure_threshold: bps.failure_threshold, usage_percent: bps.usage_percent, require_all: bps.require_all, all_models: bps.all_models, models: [...(bps.models || [])], omit_unsupported_tools: bps.omit_unsupported_tools, + web_search: bps.web_search === true, web_search_auto: bps.web_search === true && bps.web_search_auto === true, ignore_encrypted_content: bps.ignore_encrypted_content, auto_disable_on_403: bps.auto_disable_on_403, auto_recover_on_403: bps.auto_recover_on_403, recovery_interval_minutes: bps.recovery_interval_minutes, auto_move_on_403: bps.auto_move_on_403, target_group_id: bps.target_group_id, @@ -163,7 +164,7 @@ export function qualityRuleFieldValue(rule: Pick Date: Sun, 15 Nov 2026 02:50:22 +0800 Subject: [PATCH 04/12] =?UTF-8?q?fix:=20=E5=90=8C=E6=AD=A5=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E5=85=BC=E5=AE=B9=E6=8F=90=E7=A4=BA=E4=B8=8E=E8=B4=A8?= =?UTF-8?q?=E9=87=8F=E8=A7=84=E5=88=99=E4=BF=9D=E5=AD=98=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/bps-search.yml | 2 +- frontend/src/i18n/locales/en/admin/accounts.ts | 2 +- frontend/src/i18n/locales/zh/admin/accounts.ts | 2 +- .../src/utils/__tests__/qualityRulePatch.spec.ts | 15 +++++++++++++++ frontend/src/utils/qualityRulePatch.ts | 1 + 5 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bps-search.yml b/.github/workflows/bps-search.yml index 9df2a6fc2c2a..c0bbf6bf180f 100644 --- a/.github/workflows/bps-search.yml +++ b/.github/workflows/bps-search.yml @@ -44,7 +44,7 @@ jobs: cache: pnpm cache-dependency-path: frontend/pnpm-lock.yaml - run: pnpm --dir frontend install --frozen-lockfile - - run: pnpm --dir frontend exec vitest run src/components/account/__tests__/ExcelBPSSearchOptions.spec.ts src/components/common/__tests__/NewFeatureBadge.spec.ts src/components/account/__tests__/EditAccountModal.spec.ts src/components/account/__tests__/BulkEditAccountModal.spec.ts src/views/admin/__tests__/AutoConfigView.spec.ts src/composables/__tests__/useExcelBPSDefaults.spec.ts src/i18n/__tests__/localeKeyCompleteness.spec.ts + - run: pnpm --dir frontend exec vitest run src/components/account/__tests__/ExcelBPSSearchOptions.spec.ts src/components/common/__tests__/NewFeatureBadge.spec.ts src/components/account/__tests__/EditAccountModal.spec.ts src/components/account/__tests__/BulkEditAccountModal.spec.ts src/views/admin/__tests__/AutoConfigView.spec.ts src/composables/__tests__/useExcelBPSDefaults.spec.ts src/utils/__tests__/qualityRulePatch.spec.ts src/i18n/__tests__/localeKeyCompleteness.spec.ts - run: pnpm --dir frontend typecheck - name: Install isolated screenshot browser run: | diff --git a/frontend/src/i18n/locales/en/admin/accounts.ts b/frontend/src/i18n/locales/en/admin/accounts.ts index 4a4bb80fc8d7..4771e1eee9c9 100644 --- a/frontend/src/i18n/locales/en/admin/accounts.ts +++ b/frontend/src/i18n/locales/en/admin/accounts.ts @@ -879,7 +879,7 @@ export default { oauthPassthrough: 'Auto passthrough (auth only)', excelBPS: 'Excel / BPS protocol', excelBPSOmitUnsupportedTools: 'Keep BPS and omit unsupported hosted tools', - excelBPSOmitUnsupportedToolsDesc: 'Off by default: declarations for live web search (external_web_access=true), high search context or image generation use native Codex, even with tool_choice=auto before any tool executes. Enable to keep BPS, omit hosted tools unsupported by the bridge and tell the model they are unavailable. This does not add search or image generation support; client function tools are unaffected. Forced tool choices return 400; tool_choice=none does not trigger tool fallback. Fallback reasons appear in response headers and excel_bps.native_fallback diagnostic logs.', + excelBPSOmitUnsupportedToolsDesc: 'Omit hosted tools that BPS cannot execute and tell the model they are unavailable. When account web search is separately enabled, supported searches run through the current BPS account. Other hosted capabilities such as image generation retain their own routing rules. Client functions and custom tools are unaffected. Unsupported forced hosted choices fail explicitly; tool_choice=none does not trigger fallback.', excelBPSCacheCreationAsInput: 'Bill cache creation as regular input', excelBPSMihomo: 'BPS session proxy (use with caution)', excelBPSProxySource: 'Exit source', diff --git a/frontend/src/i18n/locales/zh/admin/accounts.ts b/frontend/src/i18n/locales/zh/admin/accounts.ts index ca63693bf23f..ef04de39f0bc 100644 --- a/frontend/src/i18n/locales/zh/admin/accounts.ts +++ b/frontend/src/i18n/locales/zh/admin/accounts.ts @@ -997,7 +997,7 @@ export default { oauthPassthrough: '自动透传(仅替换认证)', excelBPS: 'Excel / BPS 协议', excelBPSOmitUnsupportedTools: '保持 BPS,省略不支持的托管工具', - excelBPSOmitUnsupportedToolsDesc: '默认关闭:请求声明实时联网搜索(external_web_access=true)、高搜索上下文或图片生成时走原生 Codex 通道,即使 tool_choice=auto 且本轮尚未调用。开启后保持 BPS,省略适配层不支持的托管工具,并向模型说明能力不可用;搜索和图片生成不会因此获得支持,客户端函数工具不受影响。强制工具选择返回 400;tool_choice=none 不触发工具回退。回退原因记录在响应头及 excel_bps.native_fallback 诊断日志中。', + excelBPSOmitUnsupportedToolsDesc: '开启后省略 BPS 不支持的托管工具,并向模型说明能力不可用。单独开启账号联网搜索后,支持的搜索请求由当前 BPS 账号执行;图片生成等其他托管能力仍按各自规则处理。客户端函数和自定义工具不受影响;不支持的强制托管工具选择明确报错,tool_choice=none 不触发工具回退。', excelBPSCacheCreationAsInput: '创建缓存按普通输入计费', excelBPSMihomo: 'BPS 会话代理(谨慎开启)', excelBPSProxySource: '出口来源', diff --git a/frontend/src/utils/__tests__/qualityRulePatch.spec.ts b/frontend/src/utils/__tests__/qualityRulePatch.spec.ts index 05127f40a614..a5004fcf8766 100644 --- a/frontend/src/utils/__tests__/qualityRulePatch.spec.ts +++ b/frontend/src/utils/__tests__/qualityRulePatch.spec.ts @@ -371,3 +371,18 @@ describe('complete template selected fields', () => { expect(copied.quality.remove_models).toBeUndefined(); expect(copied.quality.bps).toBeUndefined() }) }) + + +describe('BPS search rule roundtrip', () => { + it('preserves search settings in copies and detects an action edit', () => { + const original = plan() + original.pelican_config!.quality!.action = 'enable_bps' + original.pelican_config!.quality!.bps = { ...bps(), web_search: true, web_search_auto: true } + const copied = copyQualityRuleConfig(original.pelican_config!) + expect(copied.quality.bps).toMatchObject({ web_search: true, web_search_auto: true }) + const changed = { ...original, pelican_config: copied } + copied.quality.bps!.web_search_auto = false + expect(qualityRuleFieldValue(original, 'action')).not.toEqual(qualityRuleFieldValue(changed, 'action')) + expect(qualityBPSPayload({ ...bps(), web_search: false, web_search_auto: true })).toMatchObject({ web_search: false, web_search_auto: false }) + }) +}) diff --git a/frontend/src/utils/qualityRulePatch.ts b/frontend/src/utils/qualityRulePatch.ts index 7dc5d23704ae..10f264c72694 100644 --- a/frontend/src/utils/qualityRulePatch.ts +++ b/frontend/src/utils/qualityRulePatch.ts @@ -86,6 +86,7 @@ export function qualityBPSError(bps: QualityBPSPolicy): string { export function qualityBPSPayload(bps: QualityBPSPolicy): QualityBPSPolicy { return { ...bps, + web_search: bps.web_search === true, web_search_auto: bps.web_search === true && bps.web_search_auto === true, recovery_interval_minutes: bps.recovery_interval_minutes ?? DEFAULT_BPS_RECOVERY_INTERVAL_MINUTES, models: bps.all_models ? [] : [...bps.models], target_group_id: bps.auto_move_on_403 ? bps.target_group_id : 0, From 359e11763c93b4a0d18941b020acbf05211069e2 Mon Sep 17 00:00:00 2001 From: ranxi2001 Date: Sun, 15 Nov 2026 02:51:43 +0800 Subject: [PATCH 05/12] =?UTF-8?q?test:=20=E5=90=8C=E6=AD=A5=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E8=B4=A6=E5=8F=B7=E6=90=9C=E7=B4=A2=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC=E5=92=8C=E5=8C=BF=E5=90=8D=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/account/ExcelBPSSearchOptions.vue | 2 +- .../components/account/__tests__/BulkEditAccountModal.spec.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/account/ExcelBPSSearchOptions.vue b/frontend/src/components/account/ExcelBPSSearchOptions.vue index d7a2f2b8c7a7..3454e8026967 100644 --- a/frontend/src/components/account/ExcelBPSSearchOptions.vue +++ b/frontend/src/components/account/ExcelBPSSearchOptions.vue @@ -5,7 +5,7 @@ {{ t('admin.accounts.openai.excelBPSWebSearch') }} - +

{{ t('admin.accounts.openai.excelBPSWebSearchDesc') }}