ChatGPTNextWeb / ChatGPTNextWeb/NextChat

[Bug] in the mask review detail page ,model not show correctly.

Open
#6,055 5 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

### 📦 部署方式

Other

### 📌 软件版本

最新分支本地部署

### 💻 系统环境

Windows

### 📌 系统版本

win 11

### 🌐 浏览器

Chrome

### 📌 浏览器版本

Version 131.0.6778.205 (Official Build) (64-bit)

### 🐛 问题描述

我app/store/config.ts 修改了modelConfig:model : "gpt-4o" as ModelType, 并且在masks/en.ts 下修改所有的mask 的modelConfig为gpt-4o, 但是当我点击mask 里面的views 的时候,发现里面的model 仍然是默认的'gpt-3.5-turbo",看了下model-config.tsx 里面取值确实是gpt-4o,但是providerName 识别为undefine.

### 📷 复现步骤

修改app/store/config.ts 修改了modelConfig:model : "gpt-4o" as ModelType,model-config.tsx控制台输出
const value = `${props.modelConfig.model}@${props.modelConfig?.providerName}`; 的value 值,发现确实变了,但是显示值不对

### 🚦 期望结果

应该和mask 设置的 值匹配上。

### 📝 补充信息

![image](https://github.com/user-attachments/assets/4a6a97ab-a0f4-4b94-b2b8-cbf3e121dc8a)
![image](https://github.com/user-attachments/assets/5fc5a177-8271-4203-b1f1-e8b6537a6f81)
![image](https://github.com/user-attachments/assets/2b3663d6-b6cc-4d1f-b86f-7cdc497b3fc5)
![image](https://github.com/user-attachments/assets/96f18675-8772-4b69-b3c5-51aa9f18ed1d)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading app/store/config.ts, masks/en.ts, and the model-config.tsx component, then reproduce the mask review detail page with the reported model settings. Trace how the model and providerName are read for the view. Done means the detail page displays the model configured by the mask instead of the default value.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.