Skip to content
Merged
Changes from all 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;
Comment thread
yyyu-google marked this conversation as resolved.
/** Optional. Output response mimetype of the generated candidate text.
* Supported mimetype:
* - `text/plain`: (default) Text output.
Expand Down