Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(settings): collapse advanced provider connection fields

zqchrisdfaaf974d3f4
diff --git a/apps/desktop/src/renderer/components/settings/ProviderConnectionDialog.tsx b/apps/desktop/src/renderer/components/settings/ProviderConnectionDialog.tsx
index 1eaf923ab9..98768b628a 100644
--- a/apps/desktop/src/renderer/components/settings/ProviderConnectionDialog.tsx
+++ b/apps/desktop/src/renderer/components/settings/ProviderConnectionDialog.tsx
@@ -482,6 +482,8 @@ export function ProviderConnectionDialog({
}, []);
const reportFieldError = useCallback(
(key: string, message: string) => {
+ if (key.includes(':manualModel') || key.endsWith(':add-model')) setManualOpen(true);
+ if (key.includes(':header:') || key.endsWith(':requestPath') || key.endsWith(':wireProtocol')) setShowAdvanced(true);
setFieldError({ id: `${formId}-${key}`, message });
},
[formId],
@@ -2547,60 +2549,6 @@ export function ProviderConnectionDialog({
border: '1px solid var(--settings-theme-card-border)',
}}
>
- {(editing || !onDetected) && !templateBound && (
- <div className="flex flex-col gap-[7px]">
- <FieldLabel>{t('settings.providers.custom.fields.wireProtocol')}</FieldLabel>
- <div className="flex flex-wrap gap-1.5">
- {CUSTOM_PROVIDER_CODEX_WIRE_PROTOCOLS.map((option) => (
- <button
- key={option.value}
- aria-pressed={f.wireProtocol === option.value}
- type="button"
- onClick={() => changeWireProtocol(activeTab, option.value)}
- className={cn(
- 'rounded-full border px-3 py-1.5 text-12 font-medium transition-colors',
- f.wireProtocol === option.value
- ? 'border-[var(--settings-input-border-focus)] text-[var(--settings-section-title)]'
- : 'border-[var(--settings-input-border)] text-[var(--text-secondary)] hover:bg-[var(--surface-hover)]',
- )}
- style={
- f.wireProtocol === option.value
- ? { backgroundColor: 'var(--surface-elevated)' }
- : undefined
- }
- >
- {t(
- activeTab !== 'codex' && option.value !== 'google-generative-ai'
- ? `settings.providers.custom.wireProtocol.pi${
- option.value === 'anthropic-messages'
- ? 'Anthropic'
- : option.value === 'openai-responses'
- ? 'Responses'
- : 'Chat'
- }`
- : option.labelKey,
- )}
- </button>
- ))}
- </div>
- {activeTab !== 'claude-code' && (
- <span className="text-12 leading-snug text-[var(--text-tertiary)]">
- {t(
- activeTab === 'pi' && f.wireProtocol !== 'google-generative-ai'
- ? `settings.providers.custom.wireProtocol.pi${
- f.wireProtocol === 'anthropic-messages'
- ? 'AnthropicHelp'
- : f.wireProtocol === 'openai-chat'
- ? 'ChatHelp'
- : 'ResponsesHelp'
- }`
- : customProviderCodexWireProtocolOption(f.wireProtocol).helpKey,
- )}
- </span>
- )}
- </div>
- )}
-
{/* 基础 URL */}
<div className="flex flex-col gap-[7px]">
<FormField
@@ -2635,33 +2583,6 @@ export function ProviderConnectionDialog({
</FormField>
</div>
- {/* 精确推理路径:给非标准兼容端点使用;留空仍按所选协议推导。 */}
- {(editing || !onDetected) && !templateBound && activeTab !== 'pi' && f.wireProtocol !== 'google-generative-ai' && (
- <div className="flex flex-col gap-[7px]">
- <FormField
- id={fieldId(`${activeTab}:requestPath`)}
- label={t('settings.providers.custom.fields.requestPath')}
- error={errorFor(`${activeTab}:requestPath`)}
- hint={t('settings.providers.custom.fields.requestPathHelp')}
- reserveFeedback
- >
- {(control) => (
- <SettingsTextInput
- {...control}
- surface="ivory"
- value={f.requestPath}
- onChange={(v) => patch(activeTab, (x) => ({ ...x, requestPath: v }))}
- placeholder={
- f.wireProtocol === 'anthropic-messages'
- ? '/v1/messages'
- : customProviderCodexWireProtocolOption(f.wireProtocol).defaultRequestPath
- }
- />
- )}
- </FormField>
- </div>
- )}
-
{/* API 密钥(OAuth 形态隐藏——鉴权走 Runner 的 Bearer,不收集 key) */}
{(simpleAdding || authMode === 'apiKey') && (
<div className="flex flex-col gap-[7px]">
@@ -2719,29 +2640,6 @@ export function ProviderConnectionDialog({
</div>}
</div>
)}
- {/* OAuth 形态:模型清单授权成功后自动发现(与内置订阅统一),模型 / 请求头
- 收进默认折叠的「高级配置」——普通用户不需要看到这些字段。 */}
- {authMode === 'oauth' && (
- <div className="flex flex-col gap-1.5">
- <span className="text-12 leading-snug text-[var(--text-tertiary)]">
- {t('settings.providers.custom.authMode.modelsAutoNote')}
- </span>
- <button
- type="button"
- onClick={() => setShowAdvanced((v) => !v)}
- className="flex items-center gap-1 self-start py-0.5 text-13 font-medium text-[var(--settings-section-title)]"
- >
- <ChevronDown
- size={14}
- className={cn('transition-transform', showAdvanced && 'rotate-180')}
- />
- {t('settings.providers.custom.advanced.label')}
- </button>
- </div>
- )}
-
- {(authMode !== 'oauth' || showAdvanced) && (
- <>
<div className="flex flex-col gap-2 text-13 text-[var(--text-secondary)]">
<span>{t('settings.providers.connection.modelCount', { count: f.models.filter((model) => model.id.trim()).length })}</span>
{!simpleAdding && <span className="text-12">{t('settings.providers.connection.modelsAutomatic')}</span>}
@@ -2760,14 +2658,14 @@ export function ProviderConnectionDialog({
</Button>
</div>
))}
+ </>}
<Button type="button" variant="secondary" className="w-full justify-between [--button-face-bg:transparent]"
aria-expanded={manualOpen} aria-controls={fieldId('manual-fields')}
onClick={() => setManualOpen(open => !open)}>
{t('settings.providers.connection.manualAdd')}
<ChevronDown size={14} aria-hidden className={cn('shrink-0', manualOpen && 'rotate-180')} />
</Button>
- </>}
- {(!simpleAdding || manualOpen) && <div id={fieldId('manual-fields')} className="flex flex-col gap-3">
+ {manualOpen && <div id={fieldId('manual-fields')} className="flex flex-col gap-3">
<FormField id={fieldId(`${activeTab}:manualModel`)} label={t(simpleAdding ? 'settings.providers.connection.manualId' : 'settings.providers.connection.manualModel')} error={errorFor(`${activeTab}:manualModel`)}>
{(control) => (
<SettingsTextInput {...control} surface="ivory" value={manualModel}
@@ -2806,6 +2704,99 @@ export function ProviderConnectionDialog({
</div>}
</div>
+ <button
+ type="button"
+ onClick={() => setShowAdvanced(open => !open)}
+ aria-expanded={showAdvanced}
+ aria-controls={fieldId('advanced-fields')}
+ className="flex min-h-8 items-center gap-1 self-start text-13 font-medium text-[var(--settings-section-title)]"
+ >
+ <ChevronDown size={14} aria-hidden className={cn('transition-transform', showAdvanced && 'rotate-180')} />
+ {t('settings.providers.custom.advanced.label')}
+ </button>
+ {showAdvanced && (
+ <div id={fieldId('advanced-fields')} className="flex flex-col gap-4">
+ {(editing || !onDetected) && !templateBound && (
+ <div className="flex flex-col gap-[7px]">
+ <FieldLabel>{t('settings.providers.custom.fields.wireProtocol')}</FieldLabel>
+ <div className="flex flex-wrap gap-1.5">
+ {CUSTOM_PROVIDER_CODEX_WIRE_PROTOCOLS.map((option) => (
+ <button
+ key={option.value}
+ aria-pressed={f.wireProtocol === option.value}
+ type="button"
+ onClick={() => changeWireProtocol(activeTab, option.value)}
+ className={cn(
+ 'rounded-full border px-3 py-1.5 text-12 font-medium transition-colors',
+ f.wireProtocol === option.value
+ ? 'border-[var(--settings-input-border-focus)] text-[var(--settings-section-title)]'
+ : 'border-[var(--settings-input-border)] text-[var(--text-secondary)] hover:bg-[var(--surface-hover)]',
+ )}
+ style={
+ f.wireProtocol === option.value
+ ? { backgroundColor: 'var(--surface-elevated)' }
+ : undefined
+ }
+ >
+ {t(
+ activeTab !== 'codex' && option.value !== 'google-generative-ai'
+ ? `settings.providers.custom.wireProtocol.pi${
+ option.value === 'anthropic-messages'
+ ? 'Anthropic'
+ : option.value === 'openai-responses'
+ ? 'Responses'
+ : 'Chat'
+ }`
+ : option.labelKey,
+ )}
+ </button>
+ ))}
+ </div>
+ {activeTab !== 'claude-code' && (
+ <span className="text-12 leading-snug text-[var(--text-tertiary)]">
+ {t(
+ activeTab === 'pi' && f.wireProtocol !== 'google-generative-ai'
+ ? `settings.providers.custom.wireProtocol.pi${
+ f.wireProtocol === 'anthropic-messages'
+ ? 'AnthropicHelp'
+ : f.wireProtocol === 'openai-chat'
+ ? 'ChatHelp'
+ : 'ResponsesHelp'
+ }`
+ : customProviderCodexWireProtocolOption(f.wireProtocol).helpKey,
+ )}
+ </span>
+ )}
+ </div>
+ )}
+
+ {/* 精确推理路径:给非标准兼容端点使用;留空仍按所选协议推导。 */}
+ {(editing || !onDetected) && !templateBound && activeTab !== 'pi' && f.wireProtocol !== 'google-generative-ai' && (
+ <div className="flex flex-col gap-[7px]">
+ <FormField
+ id={fieldId(`${activeTab}:requestPath`)}
+ label={t('settings.providers.custom.fields.requestPath')}
+ error={errorFor(`${activeTab}:requestPath`)}
+ hint={t('settings.providers.custom.fields.requestPathHelp')}
+ reserveFeedback
+ >
+ {(control) => (
+ <SettingsTextInput
+ {...control}
+ surface="ivory"
+ value={f.requestPath}
+ onChange={(v) => patch(activeTab, (x) => ({ ...x, requestPath: v }))}
+ placeholder={
+ f.wireProtocol === 'anthropic-messages'
+ ? '/v1/messages'
+ : customProviderCodexWireProtocolOption(f.wireProtocol).defaultRequestPath
+ }
+ />
+ )}
+ </FormField>
+ </div>
+ )}
+
{/* 请求头(可选) */}
<div className={cn('flex flex-col gap-3', simpleAdding && 'border-t border-[var(--border-default)] pt-4')}>
<div className="flex items-center gap-2">
@@ -3129,7 +3120,7 @@ export function ProviderConnectionDialog({
)}
</div>
)}
- </>
+ </div>
)}
{/* 预设模板(仅新建态、有预设时显示):下拉选择,选中即预填 baseUrl / 模型清单,
diff --git a/apps/desktop/src/renderer/components/settings/__tests__/CustomProviderDialogAccessibility.test.tsx b/apps/desktop/src/renderer/components/settings/__tests__/CustomProviderDialogAccessibility.test.tsx
index 24e75d0fa3..9b5ee06ac6 100644
--- a/apps/desktop/src/renderer/components/settings/__tests__/CustomProviderDialogAccessibility.test.tsx
+++ b/apps/desktop/src/renderer/components/settings/__tests__/CustomProviderDialogAccessibility.test.tsx
@@ -127,7 +127,7 @@ describe('BYOK speech catalog settings', () => {
{ id: 'private-voice', name: 'Upstream name', discoveredMetadata: { mode: 'chat', nativeApi: 'openai-responses' } },
] });
const user = userEvent.setup();
- render(<ProviderConnectionDialog initial={speechConnection([
+ renderExpandedConnection(<ProviderConnectionDialog initial={speechConnection([
{ id: 'private-voice', name: 'My Voice', nativeApi: 'openai-audio-speech', defaultEnabled: false },
])} onSaved={vi.fn()} onClose={vi.fn()} />);
await waitFor(() => expect(customProviderMocks.readCustomProviderKey).toHaveBeenCalled());
@@ -177,7 +177,7 @@ describe('BYOK speech catalog settings', () => {
it('restores inherited model type without dropping other user settings', async () => {
customProviderMocks.readCustomProviderKey.mockResolvedValue(null);
const user = userEvent.setup();
- render(<ProviderConnectionDialog initial={speechConnection([
+ renderExpandedConnection(<ProviderConnectionDialog initial={speechConnection([
{ id: 'private-model', name: 'My model', mode: 'audio_speech', defaultEnabled: false,
discoveredMetadata: { mode: 'chat' } },
])} onSaved={vi.fn()} onClose={vi.fn()} />);
@@ -204,7 +204,7 @@ it('retains standalone Images on edit and saves only the selected runtime when t
};
customProviderMocks.readCustomProviderKey.mockResolvedValue('invalid-test-key');
const user = userEvent.setup();
- render(<ProviderConnectionDialog initial={initial} focusAgent="pi" onSaved={vi.fn()} onClose={vi.fn()} />);
+ renderExpandedConnection(<ProviderConnectionDialog initial={initial} focusAgent="pi" onSaved={vi.fn()} onClose={vi.fn()} />);
await waitForInitialDialogFocus();
const checkbox = screen.getByLabelText('settings.providers.custom.fields.openaiImages');
expect((checkbox as HTMLInputElement).checked).toBe(true);
@@ -214,7 +214,7 @@ it('retains standalone Images on edit and saves only the selected runtime when t
imageApi: 'openai-images',
});
cleanup();
- render(<ProviderConnectionDialog initial={initial} focusAgent="pi" onSaved={vi.fn()} onClose={vi.fn()} />);
+ renderExpandedConnection(<ProviderConnectionDialog initial={initial} focusAgent="pi" onSaved={vi.fn()} onClose={vi.fn()} />);
await waitForInitialDialogFocus();
await user.click(screen.getByLabelText('settings.providers.custom.fields.openaiImages'));
await user.click(screen.getByRole('button', { name: 'settings.providers.custom.save' }));
@@ -233,7 +233,7 @@ it('retains standalone Videos on edit and saves only the selected runtime when t
};
customProviderMocks.readCustomProviderKey.mockResolvedValue('invalid-test-key');
const user = userEvent.setup();
- render(<ProviderConnectionDialog initial={initial} focusAgent="pi" onSaved={vi.fn()} onClose={vi.fn()} />);
+ renderExpandedConnection(<ProviderConnectionDialog initial={initial} focusAgent="pi" onSaved={vi.fn()} onClose={vi.fn()} />);
await waitForInitialDialogFocus();
const checkbox = screen.getByLabelText('settings.providers.custom.fields.xaiVideos');
expect((checkbox as HTMLInputElement).checked).toBe(true);
@@ -243,7 +243,7 @@ it('retains standalone Videos on edit and saves only the selected runtime when t
videoApi: 'xai-videos',
});
cleanup();
- render(<ProviderConnectionDialog initial={initial} focusAgent="pi" onSaved={vi.fn()} onClose={vi.fn()} />);
+ renderExpandedConnection(<ProviderConnectionDialog initial={initial} focusAgent="pi" onSaved={vi.fn()} onClose={vi.fn()} />);
await waitForInitialDialogFocus();
await user.click(screen.getByLabelText('settings.providers.custom.fields.xaiVideos'));
await user.click(screen.getByRole('button', { name: 'settings.providers.custom.save' }));
@@ -266,7 +266,7 @@ it('selects one Images owner while preserving other runtime endpoints, models an
};
customProviderMocks.readCustomProviderKey.mockResolvedValue('invalid-test-key');
const user = userEvent.setup();
- render(<ProviderConnectionDialog initial={initial} focusAgent="pi" onSaved={vi.fn()} onClose={vi.fn()} />);
+ renderExpandedConnection(<ProviderConnectionDialog initial={initial} focusAgent="pi" onSaved={vi.fn()} onClose={vi.fn()} />);
await waitForInitialDialogFocus();
await user.click(screen.getByLabelText('settings.providers.custom.fields.openaiImages'));
await user.click(screen.getByRole('button', { name: 'settings.providers.custom.save' }));
@@ -348,7 +348,7 @@ async function renderImageGenerationHelp() {
};
customProviderMocks.readCustomProviderKey.mockResolvedValue(null);
const user = userEvent.setup();
- render(<ProviderConnectionDialog initial={initial} onSaved={vi.fn()} onClose={vi.fn()} />);
+ renderExpandedConnection(<ProviderConnectionDialog initial={initial} onSaved={vi.fn()} onClose={vi.fn()} />);
await waitFor(() => expect(customProviderMocks.readCustomProviderKey).toHaveBeenCalled());
// Let the dialog's initial focus settle before testing the help popover's focus behavior.
await waitForInitialDialogFocus();
@@ -381,7 +381,7 @@ async function renderImageGenerationReloadConfirmation(onSaved = vi.fn(), onClos
busyCount: 3,
});
const user = userEvent.setup();
- render(<ProviderConnectionDialog initial={initial} onSaved={onSaved} onClose={onClose} />);
+ renderExpandedConnection(<ProviderConnectionDialog initial={initial} onSaved={onSaved} onClose={onClose} />);
await waitFor(() => expect(customProviderMocks.readCustomProviderKey).toHaveBeenCalled());
await user.click(
screen.getByRole('button', { name: 'settings.providers.custom.fields.runtimeAdvanced' }),
@@ -405,7 +405,7 @@ async function renderNewImageGenerationReloadConfirmation(onSaved = vi.fn(), onC
busyCount: 3,
});
const user = userEvent.setup();
- render(<ProviderConnectionDialog onSaved={onSaved} onClose={onClose} />);
+ renderExpandedConnection(<ProviderConnectionDialog onSaved={onSaved} onClose={onClose} />);
await user.type(
screen.getByPlaceholderText('settings.providers.custom.fields.namePlaceholder'),
'New image provider',
@@ -1123,7 +1123,7 @@ describe('ProviderConnectionDialog accessibility', () => {
customProviderMocks.readCustomProviderKey.mockResolvedValue('saved-key');
const user = userEvent.setup();
- render(<ProviderConnectionDialog initial={initial} onSaved={vi.fn()} onClose={vi.fn()} />);
+ renderExpandedConnection(<ProviderConnectionDialog initial={initial} onSaved={vi.fn()} onClose={vi.fn()} />);
await screen.findByText('settings.providers.custom.fields.apiKeySaved');
await user.click(
screen.getByRole('button', { name: 'settings.providers.custom.wireProtocol.responses' }),
@@ -1339,7 +1339,7 @@ describe('ProviderConnectionDialog accessibility', () => {
};
customProviderMocks.readCustomProviderKey.mockResolvedValue(null);
const user = userEvent.setup();
- render(<ProviderConnectionDialog initial={initial} onSaved={vi.fn()} onClose={vi.fn()} />);
+ renderExpandedConnection(<ProviderConnectionDialog initial={initial} onSaved={vi.fn()} onClose={vi.fn()} />);
await waitFor(() => expect(customProviderMocks.readCustomProviderKey).toHaveBeenCalled());
const configuredBadge = () =>
@@ -1393,7 +1393,7 @@ describe('ProviderConnectionDialog accessibility', () => {
const onClose = vi.fn();
const user = userEvent.setup();
- render(<ProviderConnectionDialog initial={initial} onSaved={vi.fn()} onClose={onClose} />);
+ renderExpandedConnection(<ProviderConnectionDialog initial={initial} onSaved={vi.fn()} onClose={onClose} />);
await waitFor(() => expect(customProviderMocks.readCustomProviderKey).toHaveBeenCalled());
const headersLabel = screen.getByText('settings.providers.custom.fields.headers');
@@ -1684,7 +1684,7 @@ describe('ProviderConnectionDialog accessibility', () => {
customProviderMocks.readCustomProviderKey.mockResolvedValue(null);
const user = userEvent.setup();
- render(<ProviderConnectionDialog initial={initial} onSaved={vi.fn()} onClose={vi.fn()} />);
+ renderExpandedConnection(<ProviderConnectionDialog initial={initial} onSaved={vi.fn()} onClose={vi.fn()} />);
await waitFor(() => expect(customProviderMocks.readCustomProviderKey).toHaveBeenCalled());
await user.click(
screen.getByRole('button', { name: 'settings.providers.custom.fields.runtimeAdvanced' }),
@@ -1735,7 +1735,7 @@ describe('ProviderConnectionDialog accessibility', () => {
customProviderMocks.readCustomProviderKey.mockResolvedValue(null);
const user = userEvent.setup();
- render(
+ renderExpandedConnection(
<ProviderConnectionDialog
initial={imageGenerationFromModelRouteProvider()}
onSaved={vi.fn()}
@@ -2229,6 +2229,7 @@ describe('new-connection identification', () => {
});
it('preserves header-only credentials on a local new connection', async () => {
await openIdentification(preset, 'http://127.0.0.1:1234/v1', '');
+ fireEvent.click(screen.getByRole('button', { name: 'settings.providers.custom.advanced.label' }));
fireEvent.click(screen.getByRole('button', { name: 'settings.providers.custom.fields.addHeader' }));
// Header input labels are shared by the existing form; use its placeholders.
fireEvent.change(screen.getByPlaceholderText('settings.providers.custom.fields.headerNamePlaceholder'), { target: { value: 'Authorization' } });
@@ -2643,7 +2644,7 @@ it('keeps the outer Codex summary on the saved upstream protocol', async () => {
},
};
const user = userEvent.setup();
- const { rerender } = render(<ProviderConnectionDialog initial={chat} onSaved={vi.fn()} onClose={vi.fn()} />);
+ const { rerender } = renderExpandedConnection(<ProviderConnectionDialog initial={chat} onSaved={vi.fn()} onClose={vi.fn()} />);
await screen.findByRole('tab', { name: 'settings.providers.custom.protocol.codex' });
expect(screen.getByRole('button', { name: 'settings.providers.custom.wireProtocol.chat' }).getAttribute('aria-pressed')).toBe('true');
expect(screen.getAllByText('settings.providers.custom.wireProtocol.chat').length).toBeGreaterThanOrEqual(2);
@@ -2659,6 +2660,27 @@ it('keeps the outer Codex summary on the saved upstream protocol', async () => {
await screen.findByRole('button', { name: 'settings.providers.custom.wireProtocol.chat' });
expect(screen.getAllByText('settings.providers.custom.wireProtocol.chat').length).toBeGreaterThanOrEqual(2);
- render(<ProviderConnectionDialog focusAgent="codex" onSaved={vi.fn()} onClose={vi.fn()} />);
+ renderExpandedConnection(<ProviderConnectionDialog focusAgent="codex" onSaved={vi.fn()} onClose={vi.fn()} />);
expect(screen.getAllByRole('button', { name: 'settings.providers.custom.wireProtocol.responses' }).some((button) => button.getAttribute('aria-pressed') === 'true')).toBe(true);
});
+
+// Advanced-field tests enter the same disclosures as the user.
+function renderExpandedConnection(...args: Parameters<typeof render>) {
+ const result = render(...args);
+ fireEvent.click(screen.getByRole('button', { name: 'settings.providers.custom.advanced.label' }));
+ fireEvent.click(screen.getByRole('button', { name: 'settings.providers.connection.manualAdd' }));
+ return result;
+}
+
+// Standard: connection fields remain usable while optional editors start closed.
+it('starts manual models and advanced fields closed without hiding model discovery', async () => {
+ render(<ProviderConnectionDialog onSaved={vi.fn()} onClose={vi.fn()} />);
+ expect(screen.queryByLabelText('settings.providers.connection.manualModel')).toBeNull();
+ expect(screen.queryByText('settings.providers.custom.fields.headers')).toBeNull();
+ expect(screen.getByRole('button', { name: 'settings.providers.custom.fetch.button' })).toBeTruthy();
+ fireEvent.click(screen.getByRole('button', { name: 'settings.providers.connection.manualAdd' }));
+ expect(screen.getByLabelText('settings.providers.connection.manualModel')).toBeTruthy();
+ fireEvent.click(screen.getByRole('button', { name: 'settings.providers.custom.advanced.label' }));
+ expect(screen.getByText('settings.providers.custom.fields.headers')).toBeTruthy();
+ await act(async () => {});
+});
diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.json
index 20e794740b..31f6d954d0 100644
--- a/apps/desktop/src/renderer/i18n/locales/en/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json
@@ -3624,7 +3624,7 @@
"modelsAutoNote": "Available models are discovered after sign-in"
},
"advanced": {
- "label": "Advanced (models / headers)"
+ "label": "Advanced connection settings"
},
"runtimeFill": {
"action": "Fill other runtimes",
diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.json
index c9d64370c3..07ded2f5a4 100644
--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json
@@ -3594,7 +3594,7 @@
"modelsAutoNote": "ログイン後に利用可能なモデルを自動取得"
},
"advanced": {
- "label": "詳細設定(モデル / リクエストヘッダー)"
+ "label": "接続の詳細設定"
},
"runtimeFill": {
"action": "他の runtime に入力",
diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.json
index b5c597adfe..0bacc7bd6a 100644
--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json
@@ -3594,7 +3594,7 @@
"modelsAutoNote": "로그인 후 사용 가능한 모델을 자동으로 가져옵니다"
},
"advanced": {
- "label": "고급 설정 (모델 / 요청 헤더)"
+ "label": "고급 연결 설정"
},
"runtimeFill": {
"action": "다른 runtime 채우기",
diff --git a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
index 3d5d09cb94..1008390abc 100644
--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
@@ -3594,7 +3594,7 @@
"modelsAutoNote": "登录后自动获取可用模型"
},
"advanced": {
- "label": "高级配置(模型 / 请求头)"
+ "label": "高级连接设置"
},
"runtimeFill": {
"action": "填充其他 runtime",
diff --git a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
index cb08e66e30..b725603ec4 100644
--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
@@ -3594,7 +3594,7 @@
"modelsAutoNote": "登入後自動取得可用模型"
},
"advanced": {
- "label": "高階配置(模型 / 請求頭)"
+ "label": "進階連線設定"
},
"runtimeFill": {
"action": "填入其他 Runtime",