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

maxLength #36

Closed
MarcM0 opened this issue May 20, 2021 · 3 comments
Closed

maxLength #36

MarcM0 opened this issue May 20, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@MarcM0
Copy link

MarcM0 commented May 20, 2021

What problem does this feature solve? (这个功能解决了什么问题)
At the moment you can enter any amount of items in the chat input box

Describe the solution you'd like (描述您想要的解决方案)
a parameter for the chat item with a max input length
https://chatui.io/components/chat

@MarcM0 MarcM0 added the enhancement New feature or request label May 20, 2021
@akai
Copy link
Collaborator

akai commented May 25, 2021

This feature has been added in the next branch,see 3743eaf

for example:

<Chat inputOptions={{ maxLength: 104, showCount: false }} />

@MarcM0
Copy link
Author

MarcM0 commented May 25, 2021

Thank you, do you know when I'll be able to update to this branch?

@akai
Copy link
Collaborator

akai commented May 26, 2021

You can use the beta version first 1.0.0-beta.4. And the official version will be released soon.

@MarcM0 MarcM0 closed this as completed May 27, 2021
captainstdin pushed a commit to captainstdin/ChatUI that referenced this issue May 31, 2023
* use tiktoken for api limit

* model conditional char limits on frontend

* adjust for completion tokens

---------

Co-authored-by: Alan Pogrebinschi <alanpog@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants