We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi!, @tjake
A method with many params can be verbose, flow API is more flexible and params can be passed calling the setter method, like:
Old method (verbose):
Generator.Response r = m.generate(UUID.randomUUID(), ctx, 0.0f, 256, (s, f) -> {});
Flow API:
Generator.Response r = m.generateBuilder() .session(UUID.randomUUID()) //By default, UUID.randomUUID() .promptContext(ctx) .ntokens(256) //By default, 256 .temperature(0.0f) //By default, 0.0f .onTokenWithTimings((s, aFloat) -> {}) //By default, (s, aFloat) -> {}, nothing .generate();
Generator.Response r = m.generateBuilder() .promptContext(ctx) //Required or can use prompt(String) .generate();
In first time, it appears verbose, but is very flexible, some params has a default value.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi!, @tjake
A method with many params can be verbose, flow API is more flexible and params can be passed calling the setter method, like:
Old method (verbose):
Flow API:
In first time, it appears verbose, but is very flexible, some params has a default value.
The text was updated successfully, but these errors were encountered: