ChatGPTNextWeb / ChatGPTNextWeb/NextChat

[Bug] 自定义模型功能导致配置文件体积膨胀

Open
#6,266 1 comment 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

### 📦 Deployment Method

Official installation package

### 📌 Version

2.15.8

### 💻 Operating System

Windows

### 📌 System Version

10.0.26100 Build 26100

### 🌐 Browser

Edge

### 📌 Browser Version

133.0.3065.69 (Official build) (64-bit)

### 🐛 Bug Description

自定义模型功能导致NextChat配置文件体积过大,检查配置文件发现`app-config.models`中出现重复项目。

### 📷 Recurrence Steps

1. 重置nextchat或准备一个全新安装的nextchat
2. 设置——自定义模型输入 `-all`
3. 重复刷新若干次(每次刷新等待页面完成加载)
4. 设置——本地数据——导出
5. 查看JSON文件,发现体积臃肿,检查`app-config.models`发现出现大量重复项目

### 🚦 Expected Behavior

经过上述操作后配置文件体积正常,`app-config.models`无重复项目

### 📝 Additional Information

将项目main分支clone至本地,构筑运行,问题同样存在。

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.