Skip to content

Conversation

PabloSanchi
Copy link
Contributor

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.

  • Add "additional" attribute to WatsonxAiChatOptions

* 1.1) will be more lenient. (Default: 1.0)
*/
@JsonProperty("repetition_penalty") private Float repetitionPenalty;
@JsonProperty("repetition_penalty") private Float repetitionPenalty = 1.0f;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not set default values here but your default instance in


or


public static class Builder {
private final String input;
public static final String MODEL_PARAMETER_IS_REQUIRED = "Model parameter is required";private final String input;
Copy link
Contributor

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

Copy link
Contributor Author

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

@tzolov
Copy link
Contributor

tzolov commented Apr 5, 2024

Rebased, squashed and merged at ae6a019

@tzolov tzolov closed this Apr 5, 2024
@tzolov tzolov added this to the 1.0.0-M1 milestone Apr 6, 2024
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

Successfully merging this pull request may close these issues.

2 participants