Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Austin-Patrician opened this issue Jan 10, 2025 · 3 comments
Open
Labels
bug Something isn't working

Comments

@Austin-Patrician
Copy link

📦 部署方式

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
image
image
image

@Austin-Patrician Austin-Patrician added the bug Something isn't working label Jan 10, 2025
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug]

@Austin-Patrician
Copy link
Author

Austin-Patrician commented Jan 10, 2025

我发现原因是因为mask 配置里面没有model 选项,比如我在model-config.tsx 里面把props.modelConfig?.providerName 写死成OpenAI 他就可以识别出来正确显示,所以mask 里面配置得加providerName: "OpenAI" as ServiceProvider,然后就可以正确显示你得模型了。

image
image

@Issues-translate-bot
Copy link

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.
image
image

@Austin-Patrician Austin-Patrician changed the title [Bug] [Bug] in the mask review detail page ,model not show correctly. Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants