diff --git a/src/features/providers/sheets/forms/BaseProviderForm.tsx b/src/features/providers/sheets/forms/BaseProviderForm.tsx index b69ae0a..96bbd93 100644 --- a/src/features/providers/sheets/forms/BaseProviderForm.tsx +++ b/src/features/providers/sheets/forms/BaseProviderForm.tsx @@ -55,15 +55,8 @@ const emptyModel = (): ModelEntryInput => ({ name: '', alias: '' }); const emptyApiKeyEntry = (): ApiKeyEntryInput => ({ apiKey: '', proxyUrl: '', - headersText: '', }); -const headersObjectToText = (headers?: Record): string => - Object.entries(headers ?? {}) - .filter(([k]) => k.trim()) - .map(([k, v]) => `${k}: ${v}`) - .join('\n'); - const stripDisableAllRule = (list?: string[]): string[] => (list ?? []).filter((s) => s.trim() !== '*'); @@ -124,7 +117,6 @@ function buildInitialForm( ? cfg.apiKeyEntries.map((entry) => ({ apiKey: entry.apiKey, proxyUrl: entry.proxyUrl ?? '', - headersText: headersObjectToText(entry.headers), authIndex: entry.authIndex, })) : [emptyApiKeyEntry()], @@ -823,30 +815,6 @@ export function BaseProviderForm({ placeholder="http://127.0.0.1:7890" /> -
- -