mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-29 01:10:58 +02:00
parent
ffd14435a4
commit
0dce67094e
@ -770,6 +770,12 @@ const MODEL_DISPLAY_NAMES: { [key: string]: string } = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export function getDisplayNameForModel(modelName: 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;
|
return MODEL_DISPLAY_NAMES[modelName] || modelName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user