Prettier formatting for bedrock (#4111)

* k

* k
This commit is contained in:
pablonyx 2025-02-24 18:05:29 -08:00 committed by GitHub
parent ffd14435a4
commit 0dce67094e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;
}