Comments (21)
@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
Start chats with a default mask [ ].
. Users could select their preferred mask from the masks settings, which could include Bard, ChatGPT, or any of their creations like DictionaryGPT. This would prevent the raised issue, as users would write the system message for the default mask themselves.
@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
from chatgpt-next-web.
Please follow the issue template to update title and description of your issue.
from chatgpt-next-web.
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.
from chatgpt-next-web.
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
from chatgpt-next-web.
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.
so I think the issue is not about 3rd AI provider, it is related with that the modelname validation in client side shoud take the custom model list of setting page into consideration rather than only the pre-config DEFAULT_MODELS array. because the custom model name works in eariler version before you add the DEFAULT_MODELS check.
from chatgpt-next-web.
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. so I think the issue is not about 3rd AI provider, it is related with that the modelname validation in client side shoud take the custom model list of setting page into consideration rather than only the pre-config DEFAULT_MODELS array. because the custom model name works in eariler version before you add the DEFAULT_MODELS check.
that's not actually ai provider so still
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.
from chatgpt-next-web.
sorry to bother you again.
so,how do you think the goal or purpose of such "custom models" configuration in setting page? did i use this by wrong understanding? i think we can use "OpenAI Endpoint " and "Custom Models" the two configuration to support some unkown new model which is compatible with openai api client, so chatgpt-next-web can only focus on openai format.
from chatgpt-next-web.
sorry to bother you again. so,how do you think the goal or purpose of such "custom models" configuration in setting page? did i use this by wrong understanding? i think we can use "OpenAI Endpoint " and "Custom Models" the two configuration to support some unkown new model which is compatible with openai api client, so chatgpt-next-web can only focus on openai format.
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
from chatgpt-next-web.
alternative fix it just disable this inject system prompt since its only for default models such as openai, google ai
from chatgpt-next-web.
Instead of throwing an error, it should not include a knowledge cutoff date if the date is not explicitly provided.
from chatgpt-next-web.
explicitly
explicitly better
from chatgpt-next-web.
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.
from chatgpt-next-web.
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 Start chats with a default mask [ ].
for example is can be customize by users instead of default chatgpt mask ?
from chatgpt-next-web.
i feel Algorithm5838 and H0llyW00dzZ you are talking about something about mask ,rather than my posted issue.
from chatgpt-next-web.
@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 Start chats with a default mask [ ].
. Users could select their preferred mask from the masks settings, which could include Bard, ChatGPT, or any of their creations like DictionaryGPT. This would prevent the raised issue, as users would write the system message for the default mask themselves.
@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.
from chatgpt-next-web.
v2.10.1 can use one-api ,after update to v2.10.2, it doesn't work
from chatgpt-next-web.
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
from chatgpt-next-web.
@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
from chatgpt-next-web.
i feel Algorithm5838 and H0llyW00dzZ you are talking about something about mask ,rather than my posted issue.
true dude, thats funny
i know what you mean
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.
from chatgpt-next-web.
@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
hi,fred-bf ,your demo (Preview link) works for custom model name. great.
from chatgpt-next-web.
alternative fix it just disable this inject system prompt since its only for default models such as openai, google ai要解决这个问题,只需禁用此注入系统提示,因为它只适用于默认模型,如 openai 和 google ai。
It doesn't work. I disable this inject system prompt, but I still can't get the reply when I try to use non OpenAI and Google model. I use v2.10.1 version.
from chatgpt-next-web.
Related Issues (20)
- [Bug] gemini-pro-vision无法识图 HOT 2
- [Bug] 无法修改Gemini的安全等级 HOT 4
- [Feature Request]: If you support user login in V3.0, you can set different apikeys for different users
- [Feature Request]: plugins
- [Feature Request]: 增加已支持模型列表 HOT 3
- [Feature Request]: 希望增加中转/代理的Gemini支持 HOT 8
- [Bug] HOT 4
- [Feature Request]: Update the Gemini 1.5 pro version to support image video together HOT 2
- [Feature Request]: 给快捷指令增加搜索功能 HOT 1
- [Feature Request]: 符合macos图标设计标准 HOT 2
- 能否每个对话可以单独设置api以及接口地址? HOT 7
- [Feature Request]: 二个建议 HOT 2
- [Bug] NextChat tries to query the wrong endpoint HOT 1
- [Feature Request]: 消息归档 | Message Archive HOT 2
- [Feature Request]: 增加禁用登录页输入密钥部分的选项,以防止被误判为钓鱼网站 HOT 5
- [Bug] Chat titles are not being generated automatically. HOT 2
- [Feature Request]: 能否支持下**阿里,百度的模型,如果支持,有好心人说下怎么用嘛 HOT 4
- [Bug?] [Help request] v2.11.3无法使用本地的webdav服务 HOT 17
- [Feature Request]: 能否改调用百度千帆的模型api HOT 2
- [Bug] CUSTOM_MODELS Does not work when I upgraded to v2.11.3 HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt-next-web.