Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(ui): llm api key form model name delete (#5786)

Hassieb Pakzaded5a53b10ea0
diff --git a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
index ebfb4ff4a4..2b69e74514 100644
--- a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
+++ b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
@@ -537,7 +537,7 @@ export function CreateLLMApiKeyForm({
)}
{fields.map((customModel, index) => (
- <span key={index} className="flex flex-row space-x-2">
+ <span key={customModel.id} className="flex flex-row space-x-2">
<Input
{...form.register(`customModels.${index}.value`)}
placeholder={`Custom model name ${index + 1}`}