MCPcopy Create free account
hub / github.com/pollinations/pollinations / getRealModelName

Function getRealModelName

apps/chat/src/utils/api.js:28–31  ·  view source on GitHub ↗
(modelId)

Source from the content-addressed store, hash-verified

26const CACHE_DURATION = 5 * 60 * 1000;
27
28const getRealModelName = (modelId) => {
29 if (typeof modelId !== "string") return "Unknown Model";
30 return modelId;
31};
32
33// Map server response → sanitized client-facing error.
34// We intentionally do NOT surface raw server messages: the user sees a

Callers 1

loadModelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected