-
Notifications
You must be signed in to change notification settings - Fork 2k
Feat: Add additional parameter to WatsonxAiChatOptions #539
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
Conversation
* 1.1) will be more lenient. (Default: 1.0) | ||
*/ | ||
@JsonProperty("repetition_penalty") private Float repetitionPenalty; | ||
@JsonProperty("repetition_penalty") private Float repetitionPenalty = 1.0f; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
public static class Builder { | ||
private final String input; | ||
public static final String MODEL_PARAMETER_IS_REQUIRED = "Model parameter is required";private final String input; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks awkward.
Please run ./mvnw spring-javaformat:apply
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, apologies, I did the build and it passed so I thought the code linting was right
Rebased, squashed and merged at ae6a019 |
Some custom models may include extra parameters, so the idea is to define all the common parameters but add and additional attribute that will store all these custom configuration parameters. This will also help with its maintaniablitiy as if new parameters are added we can still use it while the options are not updated.