Skip to content

Conversation

@mishraansh07
Copy link

This refactor updates the GeminiModel class to allow passing in custom generation_config and safety_settings during instantiation.

Previously, these configurations were hardcoded. Now, the constructor accepts optional config arguments. If none are provided, the class falls back to its original default settings.

This makes the class more flexible and reusable for different use cases (e.g., creative vs. factual generation) without modifying the class definition.

This refactor updates the GeminiModel class to allow passing in custom generation_config and safety_settings during instantiation.

Previously, these configurations were hardcoded. Now, the constructor accepts optional config arguments. If none are provided, the class falls back to its original default settings.

This makes the class more flexible and reusable for different use cases (e.g., creative vs. factual generation) without modifying the class definition.
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.

1 participant