Comments (3)
Bot detected the issue body's language is not English, translate it automatically.
Title: [Feature Request]: Suggestions on max_tokens usage
Problem Description
The max_tokens parameter of different models is used in different ways. In some models, if the value passed in max_tokens is inappropriate, the request will be rejected or the enunciation will be interrupted. Adding additional settings of max_tokens to the visual model is due to this problem. Regarding whether max_tokens should be passed or not. There are also many issues discussed.
Solution Description
I would like to give a suggestion for this. You can set a toggle button on the front end to control whether the current conversation passes the max_tokens parameter to the model. This can appropriately reduce the hard coding work in the program when adapting to the new model, because in addition to the determination of isVisionModel, the user can directly pass max_tokens through the front-end control. I think this design can effectively reduce the conversation trouble caused by the max_tokens parameter.
Alternatives Considered
No response
Additional Context
No response
from chatgpt-next-web.
非常同意你对max_tokens的看法,目前看,max_tokens和具体模型是强关联的,因此,在新版本中,我们将会把max_tokens作为具体模型的参数,支持用户对于模型的max_tokens进行自定义
from chatgpt-next-web.
Bot detected the issue body's language is not English, translate it automatically.
I very much agree with your view on max_tokens. At present, max_tokens is strongly related to the specific model. Therefore, in the new version, we will use max_tokens as a parameter of the specific model to support users to customize the max_tokens of the model.
from chatgpt-next-web.
Related Issues (20)
- [Bug] 本地API无法正常调用,request body:{} 为空 HOT 6
- [Feature Request]: 如何可以让聊天窗口默认全屏么,通过env什么的 HOT 2
- 支持阿里的通义千问吗。qwen。。。大降价。。1块钱可以买200万令牌 HOT 5
- [Bug] 更新Docker镜像到2.12.3之后,无法使用PROXY_URL字段 HOT 9
- [Feature Request]: Does it support the Qwen model? HOT 1
- [Bug] 无法导入本地的json数据 HOT 5
- Title HOT 1
- [Bug] 自定义模型和预设模型名称相同时,会被预设模型覆盖 HOT 6
- [gpt-4o]: Real-time voice functionality HOT 2
- [Feature Request]: Japanese Display Font Issue HOT 1
- [Feature Request]: 增加多个自定义提供商功能 HOT 2
- 真心提问:大家的api key都是从哪里买的? HOT 17
- [Bug] 配置BASE_URL后直接返回html代码 HOT 3
- [Feature Request]: Add more environment variable options HOT 3
- [Bug] 云同步Webdav 失败 HOT 13
- 目前项目本身支持Azure OpenAI 吗?还是只能通过搭建第三方代理的方式来访问? HOT 7
- [Feature Request]: Enhanced UI Modularity HOT 1
- [Bug] HOT 7
- [Feature Request]: 不清楚面具怎么用,能不能加一个例子? HOT 5
- [Feature Request]: 聊天页面,添加一个清空内容按钮。 HOT 3
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.