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

chore: add property frequencyPenalty in type defintions #394

Merged
merged 3 commits into from
Aug 21, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/types/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ export declare interface GenerationConfig {
topP?: number;
/** Optional. If specified, topK sampling will be used. */
topK?: number;
/**
* Optional. Positive values penalize tokens that repeatedly appear in the generated text, decreasing the probability of repeating content.
* This maximum value for frequencyPenalty is up to, but not including, 2.0. Its minimum value is -2.0.
* Supported by gemini-1.5-pro and gemini-1.5-flash only. */
frequencyPenalty?: number;
yyyu-google marked this conversation as resolved.
Show resolved Hide resolved
/** Optional. Output response mimetype of the generated candidate text.
* Supported mimetype:
* - `text/plain`: (default) Text output.
Expand Down
Loading