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
[Enhancement] Set the max length of text for KoboldAI to a bigger value. #192
Comments
Also, for streamed text, you can use: https://koboldai-koboldcpp-tiefighter.hf.space/api#/extra/post_extra_generate_stream |
I am already using streamed text. And there is no option to set max limit. The one you provided it the max limit of input which is probably 2048 characters. Max limit of output is probably 80 characters - https://koboldai-koboldcpp-tiefighter.hf.space/api#/v1/get_v1_config_max_length |
https://koboldai-koboldcpp-tiefighter.hf.space/api#/v1/get_v1_config_max_length That is an example, you can get what the current possible max length by pulling from https://koboldai-koboldcpp-tiefighter.hf.space/api#/extra/get_extra_true_max_context_length |
I don't see any option to set length in docs -
But I will try |
This is the example they provide:
For https://koboldai-koboldcpp-tiefighter.hf.space/api#/v1/post_v1_generate |
Well the example is not for stream mode, however max length works for stream mode too. I am making the default value 300, later I will add flags for it so that users can adjust it |
Okay, excellent! Thanks for all the hard work! |
Currently, the Kobold backend can only produce about one paragraph and half of the other, this is because the max_length is not set to be the value of max_context_length when doing the API call.
See: https://koboldai-koboldcpp-tiefighter.hf.space/api#/v1/get_v1_config_max_context_length
For example:
Also, note the "." before the response, its been a recurring thing with this backend/provider.
Thanks! Have a great day!
The text was updated successfully, but these errors were encountered: