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

请教关于携带上下文,token限制的方案 #6

Open
mingxin-yang opened this issue May 6, 2023 · 0 comments
Open

请教关于携带上下文,token限制的方案 #6

mingxin-yang opened this issue May 6, 2023 · 0 comments

Comments

@mingxin-yang
Copy link

在前端判断字符长度,只能用累计的方法,中文字符就会不准确,然后就需要在后端统计content的总的token数吧,如果超出了的话,如何进行content的取舍呢,比如只留下第一问题和最后一个答案,如果这两个加一起也超过了input token的限制,应该如何取舍,有没有好的方案,或者作者是用的什么方案,学习一下

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

No branches or pull requests

1 participant