diff --git a/src/pages/Settings/AIProviders.tsx b/src/pages/Settings/AIProviders.tsx index bc43648a..0cec08f6 100644 --- a/src/pages/Settings/AIProviders.tsx +++ b/src/pages/Settings/AIProviders.tsx @@ -110,7 +110,7 @@ export default function AIProviders() { const startEdit = (index: number) => { const provider = ai_providers[index]; - const apiFormat = normalizeApiFormat(provider.api_format); + const apiFormat = provider.api_format; const nextForm = { ...provider, api_format: apiFormat }; setForm(nextForm); @@ -329,7 +329,7 @@ export default function AIProviders() { placeholder="sk-..." /> - {!(form.provider_type === "custom" && normalizeApiFormat(form.api_format) === CUSTOM_REST_FORMAT) && ( + {!(form.provider_type === "custom" && form.api_format === CUSTOM_REST_FORMAT) && (
{/* Custom REST specific: User ID field */} - {normalizeApiFormat(form.api_format) === CUSTOM_REST_FORMAT && ( + {form.api_format === CUSTOM_REST_FORMAT && (