[Bug] in the mask review detail page ,model not show correctly.
📦 部署方式
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 设置的 值匹配上。
📝 补充信息
Bot detected the issue body's language is not English, translate it automatically.
Title: [Bug]
我发现原因是因为mask 配置里面没有model 选项,比如我在model-config.tsx 里面把props.modelConfig?.providerName 写死成OpenAI 他就可以识别出来正确显示,所以mask 里面配置得加providerName: "OpenAI" as ServiceProvider,然后就可以正确显示你得模型了。
Bot detected the issue body's language is not English, translate it automatically.
I found that the reason is because there is no model option in the mask configuration. For example, if I hardcode props.modelConfig?.providerName into OpenAI in model-config.tsx, it can recognize it and display it correctly, so the model must be added to the mask configuration.
类似issue:https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/issues/5836
我也是这几天自己改了一下
Bot detected the issue body's language is not English, translate it automatically.
Similar issue: https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/issues/5836
I also changed it myself in the past few days.