Skip to content

Commit bbcb968

Browse files
committed
Fix equals and hashCode
Signed-off-by: SenreySong <25841017+SenreySong@users.noreply.github.com>
1 parent faf0c8b commit bbcb968

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

models/spring-ai-openai/src/main/java/org/springframework/ai/openai/OpenAiChatOptions.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,8 @@ public int hashCode() {
654654
this.streamOptions, this.seed, this.stop, this.temperature, this.topP, this.tools, this.toolChoice,
655655
this.user, this.parallelToolCalls, this.toolCallbacks, this.toolNames, this.httpHeaders,
656656
this.internalToolExecutionEnabled, this.toolContext, this.outputModalities, this.outputAudio,
657-
this.store, this.metadata, this.reasoningEffort, this.webSearchOptions, this.serviceTier);
657+
this.store, this.metadata, this.reasoningEffort, this.webSearchOptions, this.serviceTier,
658+
this.extraBody);
658659
}
659660

660661
@Override
@@ -689,7 +690,8 @@ public boolean equals(Object o) {
689690
&& Objects.equals(this.reasoningEffort, other.reasoningEffort)
690691
&& Objects.equals(this.webSearchOptions, other.webSearchOptions)
691692
&& Objects.equals(this.verbosity, other.verbosity)
692-
&& Objects.equals(this.serviceTier, other.serviceTier);
693+
&& Objects.equals(this.serviceTier, other.serviceTier)
694+
&& Objects.equals(this.extraBody, other.extraBody);
693695
}
694696

695697
@Override

0 commit comments

Comments
 (0)