refactor: Update getModelShortName function to handle GPT-4o model
This commit is contained in:
@@ -131,6 +131,9 @@ export function getModelShortName(model:string){
|
|||||||
if(model.startsWith("cohere-")){
|
if(model.startsWith("cohere-")){
|
||||||
return model.replace("cohere-", "")
|
return model.replace("cohere-", "")
|
||||||
}
|
}
|
||||||
|
if(model.startsWith("gpt4o")){
|
||||||
|
return "GPT-4o"
|
||||||
|
}
|
||||||
if(model.startsWith("gpt4")){
|
if(model.startsWith("gpt4")){
|
||||||
return "GPT-4"
|
return "GPT-4"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user