-
Notifications
You must be signed in to change notification settings - Fork 60.4k
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] custom model name does not work any more in the latest build version #4007
Comments
Please follow the issue template to update title and description of your issue. |
At present, custom models for other AI providers are not available, particularly those to which we do not have access (as contributor,devs). It's worth reconsidering how contributors, or any developers for that matter, can address bugs or make improvements to models they cannot access. |
feel free to sponsoring this project as professionalism for example giving they access such as contributor,devs then can easily fix,improve or whatever it is |
i use a service named one-api https://github.com/songquanpeng/one-api to convert some 3rd model provider api into openai compatible api, so the qwen model from aliyun dashscope can privide openai format stream response which is accepted by chatgpt next web application. |
that's not actually ai provider so still |
sorry to bother you again. |
well, still I don't have access to the other ai so what can I do, anyway why should I fix it without testing or anything else when I don't have access lmao |
Instead of throwing an error, it should not include a knowledge cutoff date if the date is not explicitly provided. |
explicitly better |
I believe a more effective implementation would be to have an option to select a default mask for new chats. This selection could be presented in the settings as 'Start chats with a default mask [ ].' Initially, a default ChatGPT mask might be selected, but users should have the capability to change this. |
so |
i feel Algorithm5838 and H0llyW00dzZ you are talking about something about mask ,rather than my posted issue. |
@H0llyW00dzZ Yes. Currently, initiating a new chat requires either a default system message, a ChatGPT mask, or no system message. Although you can create masks, you must select your preferred one each time. A proposed solution is to allow users to set a default mask for starting chats, which would be the revised setting @lizhe2004 It might appear so, but I'm recommending a different implementation for the code that gave rise to this issue. I'm currently using one-api, but I haven't updated my NextChat fork. If I did, I would likely encounter this same problem. |
It easy to implement it just like writing a slices byte in go I might gonna trying it later |
v2.10.1 can use one-api ,after update to v2.10.2, it doesn't work |
Please create an individual issue for your question |
@lizhe2004 could you try the work around in this PR(Preview link)? For the time being, the default system content is set to make OpenAI by default, and the it will be considered to maintain relevant information when registering custom models at server side in the future |
true dude, thats funny My solution is to hardcode the model list and set the provider to OpenAI. However, there are still some issues. For example, if I need to set a model with a custom display name, I must use the environment variable CUSTOM_MODEL. |
hi,fred-bf ,your demo (Preview link) works for custom model name. great. |
Describe the bug
custom model name does not work any more in the latest build version ,with console log showing "Model xxx not found in DEFAULT_MODELS array"
To Reproduce
Steps to reproduce the behavior:
5 send some question in the chat page
Expected behavior
I think i should get the response message from the custom model rather than no response with console eror message showing "Model xxx not found in DEFAULT_MODELS array"
I think the bug is introduced by such commit , which lost consideration the custom models configed in user setting page, with only search the DEFAULT_MODELS const value.
a5517a1#diff-87cc040dd1bc561fde5c60b722355d5151ff86b7f70c325dfe403885603ea233R98
Screenshots
If applicable, add screenshots to help explain your problem.
Deployment
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: