refactor: Update getModelShortName function to handle GPT-4o model

This commit is contained in:
kwaroran
2024-05-27 13:25:26 +09:00
parent 7f3434f8e4
commit c96c12b6e4

View File

@@ -131,6 +131,9 @@ export function getModelShortName(model:string){
if(model.startsWith("cohere-")){
return model.replace("cohere-", "")
}
if(model.startsWith("gpt4o")){
return "GPT-4o"
}
if(model.startsWith("gpt4")){
return "GPT-4"
}