fix(provider-topology): update label assignment to include nodeName

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
decolua
2026-06-13 11:43:18 +07:00
parent d652300e9e
commit 05e483c02e
4 changed files with 18 additions and 9 deletions

View File

@@ -208,7 +208,7 @@ export default function ModelSelectModal({
// Find connection object to get prefix synchronously without waiting for providerNodes fetch
const connection = activeProviders.find(p => p.provider === providerId);
const matchedNode = providerNodes.find(node => node.id === providerId);
const displayName = connection?.name || matchedNode?.name || providerInfo.name;
const displayName = matchedNode?.name || connection?.name || providerInfo.name;
const nodePrefix = connection?.providerSpecificData?.prefix || matchedNode?.prefix || providerId;
// Aliases are stored using the raw providerId as key (e.g. "openai-compatible-chat-<uuid>/glm-4.7"),