Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flatten model configuration (i.e. extend from GenerationCommonConfig #72

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

MichaelDoyle
Copy link
Contributor

Before you submit a pull request, please make sure you have read and understood the contribution guidelines and the code of conduct.

This pull request is related to:

  • A bug
  • A new feature
  • Documentation
  • Other (please specify)

I have checked the following:

  • I have read and understood the contribution guidelines and the code of conduct;
  • I have added new tests (for bug fixes/features);
  • I have added/updated the documentation (for bug fixes / features).

Description:
Some time ago we, we moved to away from custom model parameters in favor of a flattened structure. This change will rectify this for all relevant generative models by creating custom configs schemas that extend from GenerationCommonConfigSchema. In the process, I added some better type safety which yielded quite a few bugs. 😄

Related issues:
See also: firebase/genkit@6ec91ee

Dabolus
Dabolus previously approved these changes Jun 3, 2024
Copy link
Collaborator

@Dabolus Dabolus left a comment

Choose a reason for hiding this comment

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

Awesome! Thanks for the huge contribution and for fixing the bugs along the way. Looks good to me 🚀

@MichaelDoyle
Copy link
Contributor Author

Resolved some merge conflicts. Will need a second review. Thanks!

@MichaelDoyle MichaelDoyle mentioned this pull request Jun 4, 2024
7 tasks
@Dabolus Dabolus merged commit 2092259 into TheFireCo:main Jun 4, 2024
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