Skip to content

Conversation

@adamglin0
Copy link
Contributor

Why

Enable custom GroqModel IDs. Backward compatibility is primarily syntax-level.

What

Changed GroqModel from enum to data class. Retained existing constants (e.g., GroqModel.LLAMA_3_8B_8192) as pre-defined instances.

How

Existing code using constants compiles. Important: Address potential compatibility issues in serialization, configuration, API interactions, and type safety. Requires thorough testing and potential migration efforts.

Copy link
Owner

@vyfor vyfor left a comment

Choose a reason for hiding this comment

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

Looks good! I've eyeballed the necessary changes for now, will test everything later and update you.

Introduce unit tests to ensure correct serialization and deserialization of the `GroqModel` class. Updated `GroqModel` to use a Kotlin `value class` for efficiency and modified Gradle configuration to centralize test dependencies in `commonTest`.
Copy link
Owner

@vyfor vyfor left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for adding the tests.

@vyfor vyfor merged commit 420ce25 into vyfor:master Apr 18, 2025
1 check passed
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