Compare commits

...

2 Commits

Author SHA1 Message Date
pablonyx
db1ec4f45b k 2025-02-24 17:22:05 -08:00
pablonyx
e5e310d81d k 2025-02-24 17:18:17 -08:00

View File

@@ -770,6 +770,12 @@ const MODEL_DISPLAY_NAMES: { [key: string]: string } = {
};
export function getDisplayNameForModel(modelName: string): string {
if (modelName.startsWith("bedrock/")) {
const parts = modelName.split("/");
const lastPart = parts[parts.length - 1];
return MODEL_DISPLAY_NAMES[lastPart] || lastPart;
}
return MODEL_DISPLAY_NAMES[modelName] || modelName;
}