Merge pull request #26 from devchat-ai/update_model_list

Update model name mapping in InputMessage component
This commit is contained in:
boob.yang 2024-02-01 22:37:15 +08:00 committed by GitHub
commit 3e2ea595d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -248,11 +248,9 @@ const InputMessage = observer((props: any) => {
const getModelShowName = (modelName: string) => {
const nameMap = {
"gpt-3.5-turbo": "GPT-3.5",
"gpt-3.5-turbo-1106": "GPT-3.5-1106",
"gpt-3.5-turbo-16k": "GPT-3.5-16K",
"gpt-4": "GPT-4",
"gpt-4-1106-preview": "GPT-4-turbo",
"claude-2": "CLAUDE-2",
"claude-2.1": "CLAUDE 2.1",
};
if (modelName in nameMap) {
return nameMap[modelName];