Skip to content

Commit 142d5dc

Browse files
committed
[Enhancement] - Add equals and hashCode logic
Signed-off-by: Stuart Loxton <[email protected]>
1 parent a2145e3 commit 142d5dc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

models/spring-ai-bedrock-converse/src/main/java/org/springframework/ai/bedrock/converse/BedrockChatOptions.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ public boolean equals(Object o) {
251251
return Objects.equals(this.model, that.model) && Objects.equals(this.frequencyPenalty, that.frequencyPenalty)
252252
&& Objects.equals(this.maxTokens, that.maxTokens)
253253
&& Objects.equals(this.presencePenalty, that.presencePenalty)
254+
&& Objects.equals(this.requestParameters, that.requestParameters)
254255
&& Objects.equals(this.stopSequences, that.stopSequences)
255256
&& Objects.equals(this.temperature, that.temperature) && Objects.equals(this.topK, that.topK)
256257
&& Objects.equals(this.topP, that.topP) && Objects.equals(this.toolCallbacks, that.toolCallbacks)
@@ -260,8 +261,9 @@ public boolean equals(Object o) {
260261

261262
@Override
262263
public int hashCode() {
263-
return Objects.hash(this.model, this.frequencyPenalty, this.maxTokens, this.presencePenalty, this.stopSequences,
264-
this.temperature, this.topK, this.topP, this.toolCallbacks, this.toolNames, this.toolContext,
264+
return Objects.hash(this.model, this.frequencyPenalty, this.maxTokens, this.presencePenalty,
265+
this.requestParameters, this.stopSequences, this.temperature, this.topK, this.topP,
266+
this.toolCallbacks, this.toolNames, this.toolContext,
265267
this.internalToolExecutionEnabled);
266268
}
267269

0 commit comments

Comments
 (0)