Skip to content

Conversation

@apappascs
Copy link
Contributor

This commit enhances MiniMaxChatOptions 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 MiniMaxChatOptionsTests to verify copy(), builders, setters, and default values.

This commit enhances MiniMaxChatOptions 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 `MiniMaxChatOptionsTests` to verify `copy()`, builders, setters, and default values.

Signed-off-by: Alexandros Pappas <[email protected]>
@apappascs apappascs changed the title feat: equals, hashCode, deep copy, and tests to MiniMaxChatOptions feat: Add equals, hashCode, deep copy, and tests to MiniMaxChatOptions Mar 2, 2025
@markpollack markpollack requested a review from tzolov June 6, 2025 13:40
@markpollack markpollack added this to the 1.1.x milestone Jun 6, 2025
@markpollack markpollack self-assigned this Jun 6, 2025
@markpollack markpollack requested review from ilayaperumalg and removed request for ilayaperumalg and tzolov June 12, 2025 16:04
@markpollack
Copy link
Member

markpollack commented Jun 12, 2025

rebased and added a few more tests and defensive copies of some getters. merged into main d9e3037 and backported to 1.0.x

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants