ChatGPTNextWeb / ChatGPTNextWeb/NextChat

[Bug] 同步或导入低版本的备份后,导致可选模型列表被修改

Open
#4,700 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
88.8k
Forks
59.1k
PR merge metrics
No merged PRs in 30d

Description

### Bug Description

目前使用docker安装2.12.3版本。当使用之前导出的本地json或upstash同步后,旧版本的设置覆盖新版本的model可选列表。导致可选用的新模型消失,最明显的就是新添加的gpt-4o和gpt-4o20240513从任何地方都找不到了,包括设置-model选择、对话窗口model选择、编辑面具model选择。这些地方都找不到新的模型了。
查看浏览器本地存储发现,app-config键中存储了model的列表,猜测是被同步和备份数据覆盖了。
模型列表被覆盖应该是违反了现实逻辑,应该不做同步处理,或者在后端写死

### Steps to Reproduce

1.docker安装好2.12.3版本的应用
2.浏览器清空缓存
3.检查设置窗口-model选择,可以看到gpt-4o待选
4.点击设置好upstash并同步或者导入本地数据(之前的备份)
5.再次检查设置窗口-model选择,gpt-4o和gpt-4o20240513的选项消失了

### Expected Behavior

恢复备份和同步只涉及对话数据和面具,不应对模型列表进行操作。这样实际是造成了功能的回退。

### Screenshots

![未标题-1](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/assets/56990900/781f9d38-e121-46fb-906f-feb904a2af5c)

![未标题-2](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/assets/56990900/3e190c95-66f2-431a-a3a7-975d9a165671)

![330656522-8c3edf21-a43d-460b-a066-c35dc3fe51ef](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/assets/56990900/6f38f49d-73fa-4626-8078-3351e03c81f3)

### Deployment Method

- [X] Docker
- [ ] Vercel
- [ ] Server

### Desktop OS

windows 10

### Desktop Browser

Chrome

### Desktop Browser Version

124.0.6367.158

### Smartphone Device

_No response_

### Smartphone OS

_No response_

### Smartphone Browser

_No response_

### Smartphone Browser Version

_No response_

### Additional Logs

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.