diff --git a/src/components/providers/OpenAISection/OpenAISection.tsx b/src/components/providers/OpenAISection/OpenAISection.tsx index 7b7c766..7eeb4b4 100644 --- a/src/components/providers/OpenAISection/OpenAISection.tsx +++ b/src/components/providers/OpenAISection/OpenAISection.tsx @@ -55,6 +55,14 @@ interface IndexedOpenAIProvider { originalIndex: number; } +const getApiKeyEntryRenderKey = ( + entry: NonNullable[number], + entryIndex: number +) => { + const authIndex = entry.authIndex == null ? '' : String(entry.authIndex).trim(); + return authIndex ? `auth-index-${authIndex}` : `api-key-entry-${entryIndex}`; +}; + export function OpenAISection({ configs, keyStats, @@ -507,7 +515,7 @@ export function OpenAISection({ ); return (
{entryIndex + 1}