Comments (3)
Really thx for the clarification!
from chatgpt-next-web.
A PR has been submitted to fix it: #4597
from chatgpt-next-web.
The max_tokens
setting is often misunderstood, and its description in this project's settings is incorrect. To clarify, max_tokens
does not refer to the LLM's context, which is the combination of input and output tokens. Instead, max_tokens
limits the number of output tokens generated by the LLM.
To illustrate this, consider the gpt-4-turbo model, which has a context size of 128,000 tokens. However, its output is capped at 4,096 tokens. To obtain the maximum output, you should set max_tokens
to 4,096. If you set it to 128,000, you'll encounter an error, as you won't leave sufficient tokens for the input.
Note that max_tokens
is disabled by default in this project, but enabled for vision models with a setting of 4,000. If you're using a custom fork, be sure to enable max_tokens
accordingly.
from chatgpt-next-web.
Related Issues (20)
- [Bug] 坚果云webdev同步无效!! HOT 3
- Cloud Data Sync (upstash) does not work, Windows 10 client ,version: 2.11.3 HOT 3
- [Bug] HOT 3
- [Feature Request]: 请问对话实际储存在哪里呢? HOT 2
- [Bug] 使用非gpt.3.5的模型聊天导致无法自动总结内容 HOT 9
- [Feature Request]: Gemini API safety settings not avalable HOT 3
- [Bug] HOT 6
- 添加 Cloudflare Workers AI 支持 HOT 2
- 不支持groq兼容的openai endpoint[Bug] HOT 7
- [Feature Request]: 完善gemini的支持 HOT 4
- [Bug] Internal Server Error with latest docker build
- [Bug] Customized endpoint settings are not working. HOT 4
- crée un script complet en ''bat'' indétectable ,invisible et indétectable en tout les antivirus et en windows défendeur avec shell code est apres 10 minute il affiche le message hello wold plusieurs fois et automatique instantané en utilisant msg * et il bloque tout les accès sur windows et bloque le clavier et souris est est il copie le script en ''bat'' automatiquement au dossier de démarrage windows est qui va commencé a se lance automatiquement au ramarrege même si vous éteint est allumé il continuera toujours de s'exécuter, créé se script en en référent ou en collectant le donne sur github.com HOT 2
- Azure gpt-4-turbo-2024-04-09 is not responding, The response is truncated or interrupted. [Bug] HOT 4
- [Bug] v2.12.2 使用 url settings 参数配置地址和密钥之后没有自动启动自定义接口选项 HOT 5
- [Bug] GEMINI_SUMMARIZE_MODEL HOT 5
- [Feature Request]: Improve Prompts HOT 1
- [Feature Request]: default_model 别名和 key 轮询 HOT 9
- [Feature Request]: hope to add an option for a unified interface, where we can input a centralized address like one-api for redirection. HOT 4
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.