docs: add comment for nodePrefix UUID fallback caveat

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Nyaru Toru
2026-02-24 21:30:29 +07:00
committed by GitHub
parent bf49fdf0bf
commit ca2b1faa72

View File

@@ -149,7 +149,7 @@ export default function ModelSelectModal({
} else if (isCustomProvider) {
const matchedNode = providerNodes.find((node) => node.id === providerId);
const displayName = matchedNode?.name || providerInfo.name;
const nodePrefix = matchedNode?.prefix || providerId;
const nodePrefix = matchedNode?.prefix || providerId; // Consider a more user-friendly fallback if providerId is a UUID
const nodeModels = Object.entries(modelAliases as Record<string, string>)
.filter(([, fullModel]: [string, string]) => fullModel.startsWith(`${providerId}/`))