You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(vertexai): Add repetition penalties to GenerationConfig (#17234)
* feat: Add presencePenalty and frequencyPenalty to GenerationConfig
This commit adds two new instance variables, and
, to the class. These variables
control the likelihood of repeating words or phrases in the generated text.
The implementation is based on the Swift SDK and includes corresponding
documentation.
Note: Unable to run tests due to unavailable test execution environment.
* Use Dartdoc formatting
* Add test for presencePenalty and frequencyPenalty
* Move new fields into `BaseGenerationConfig`
* Add `presencePenalty` and `frequencyPenalty` to `LiveGenerationConfig`
* Reword repetition penalties docs
* Link to Firebase docs instead of Cloud docs for repetition penalties
Both `presencePenalty` and `frequencyPenalty` have now been added to:
https://firebase.google.com/docs/vertex-ai/model-parameters?platform=flutter#configure-model-parameters-gemini
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
0 commit comments