refactor: Add Cohere models to ModelList and names.ts
This commit is contained in:
@@ -103,6 +103,10 @@ export function getModelName(name:string){
|
||||
return 'Gemini 1.5 Flash'
|
||||
case 'ollama-hosted':
|
||||
return 'Ollama'
|
||||
case 'cohere-command-r':
|
||||
return 'Cohere Command-R'
|
||||
case 'cohere-command-r-plus':
|
||||
return 'Cohere Command-R Plus'
|
||||
default:
|
||||
if(name.startsWith("horde:::")){
|
||||
const split = name.split(":::")
|
||||
@@ -124,6 +128,9 @@ export function getModelShortName(model:string){
|
||||
if(model.startsWith("gpt35")){
|
||||
return "GPT-3.5"
|
||||
}
|
||||
if(model.startsWith("cohere-")){
|
||||
return model.replace("cohere-", "")
|
||||
}
|
||||
if(model.startsWith("gpt4")){
|
||||
return "GPT-4"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user