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

Fix splicing at the end of the list when the model list changes in the middle of the constant definition,and correcting a error word #4332

Closed
wants to merge 3 commits into from

Conversation

fengzai6
Copy link
Contributor

修复当模型列表更改在常量定义的中间时,会拼接在列表尾部,比如我旧的DEFAULT_MODELS有[gpt4,gpt4-03,gpt3],此时用户已经访问过本项目,并且存储了旧的模型列表,当我在更新中给新的DEFAULT_MODELS设置为[gpt4,gpt4-03,gpt4-06,gpt3]时,用户重新访问本项目时,新的模型会拼接在列表底部,情况如下例子:
image
这样让用户列表变的混乱起来了
故删除相应的oldModels处理,直接使用获取到的newModels。
其他:更正了一个单词拼写错误

Copy link

vercel bot commented Mar 17, 2024

@fengzai6 is attempting to deploy a commit to the NextChat Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

Your build has completed!

Preview deployment

@Dean-YZG
Copy link
Contributor

oldModels need be invalided

@Dean-YZG Dean-YZG closed this Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants