This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This script modifies Google's MakerSuite to add sliders for controlling | |
* Top K, Frequency Penalty, Presence Penalty, and Seed during text generation. | |
* It intercepts the serialization process to inject these parameters into | |
* the AI model's request payload. | |
* The Seed slider also gets a secondary button for generating a random seed. | |
* It also provides a checkbox to disable the frequency and presence penalties. | |
*/ | |
/** |