Skip to content

Conversation

@apappascs
Copy link
Contributor

This commit enhances OCICohereChatOptions by:

  • Updating equals and hashCode methods for proper object comparison.
  • Updating copy() method, creating new instances of mutable collections (List, Set, Map, Metadata) to prevent shared state.
  • Adding OCICohereChatOptionsTests to verify copy(), builders, setters, and default values.

This commit enhances OCICohereChatOptions by:

- Updating equals and hashCode methods for proper object comparison.
- Updating copy() method, creating new instances of mutable collections (List, Set, Map, Metadata) to prevent shared state.
- Adding OCICohereChatOptionsTests to verify copy(), builders, setters, and default values.

Signed-off-by: Alexandros Pappas <[email protected]>
@ThomasVitale
Copy link
Contributor

@apappascs thanks for your contribution!

@ilayaperumalg ilayaperumalg self-assigned this Apr 28, 2025
@ilayaperumalg ilayaperumalg added this to the 1.0.0-RC1 milestone Apr 28, 2025
@ilayaperumalg ilayaperumalg merged commit dc5922f into spring-projects:main Apr 28, 2025
2 checks passed
@ilayaperumalg
Copy link
Member

@apappascs Thanks for the PR!

@sobychacko sobychacko modified the milestones: 1.0.0-RC1, 1.0.0-M8 Apr 28, 2025
namsoo2 pushed a commit to namsoo2/spring-ai that referenced this pull request Jun 9, 2025
…ons (spring-projects#2361)

This commit enhances OCICohereChatOptions by:

- Updating equals and hashCode methods for proper object comparison.
- Updating copy() method, creating new instances of mutable collections (List, Set, Map, Metadata) to prevent shared state.
- Adding OCICohereChatOptionsTests to verify copy(), builders, setters, and default values.

Signed-off-by: Alexandros Pappas <[email protected]>
Signed-off-by: minsoo.nam <[email protected]>
chedim pushed a commit to couchbaselabs/spring-ai that referenced this pull request Sep 19, 2025
…ons (spring-projects#2361)

This commit enhances OCICohereChatOptions by:

- Updating equals and hashCode methods for proper object comparison.
- Updating copy() method, creating new instances of mutable collections (List, Set, Map, Metadata) to prevent shared state.
- Adding OCICohereChatOptionsTests to verify copy(), builders, setters, and default values.

Signed-off-by: Alexandros Pappas <[email protected]>
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.

4 participants