refactor: Add Cohere models to ModelList and names.ts

This commit is contained in:
kwaroran
2024-05-27 13:23:42 +09:00
parent 73eec2f018
commit 7f3434f8e4
4 changed files with 95 additions and 0 deletions

View File

@@ -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"
}