feat: Update display names for model selection

- Revise model names for clarity and uniformity
- Include new model entries xinghuo-3.5, GLM-4, and others
- Ensure names are concise and reflective of model characteristics
This commit is contained in:
bobo 2024-02-06 10:51:30 +08:00
parent 9c37ba0c1e
commit 9e4a5595c6

View File

@ -240,8 +240,15 @@ const InputMessage = observer((props: any) => {
const nameMap = { const nameMap = {
"gpt-3.5-turbo": "GPT-3.5", "gpt-3.5-turbo": "GPT-3.5",
"gpt-4": "GPT-4", "gpt-4": "GPT-4",
"gpt-4-1106-preview": "GPT-4-turbo", "gpt-4-turbo-preview": "GPT-4-turbo",
"claude-2.1": "CLAUDE 2.1", "claude-2.1": "CLAUDE-2.1",
"xinghuo-3.5": "xinghuo-3.5",
"GLM-4": "GLM-4",
"ERNIE-Bot-4.0": "ERNIE-Bot-4.0",
"togetherai/codellama/CodeLlama-70b-Instruct-hf": "CodeLlama-70b",
"togetherai/mistralai/Mixtral-8x7B-Instruct-v0.1": "Mixtral-8x7B",
"minimax/abab6-chat": "minimax-abab6",
"llama-2-70b-chat": "llama2-70b",
}; };
if (modelName in nameMap) { if (modelName in nameMap) {
return nameMap[modelName]; return nameMap[modelName];