fix(memory): display embd_name with fallback to embd_id in form field (#17956)

This commit is contained in:
chanx
2026-08-07 09:34:30 +08:00
committed by GitHub
parent f532f27f1f
commit 1ef7910103
2 changed files with 2 additions and 1 deletions

View File

@@ -62,7 +62,7 @@ export function useDisableDifferenceEmbeddingMemory(name: string) {
name={item.name}
/>
),
suffix: <MemoryLabel text={item.embd_id} />,
suffix: <MemoryLabel text={item.embd_name || item.embd_id} />,
value: item.id,
disabled: item.embd_id !== selectedEmbedId && selectedEmbedId !== '',
};

View File

@@ -9,5 +9,6 @@ export interface IMemory {
storage_type: string;
tenant_id: string;
embd_id: string;
embd_name?: string;
llm_id: string;
}