From 05f754981afc6884a90f352f17c6e080e4c52f19 Mon Sep 17 00:00:00 2001 From: Michael Barajas Date: Mon, 5 Aug 2024 14:16:11 -0400 Subject: [PATCH] fix: missing property frequencyPenalty in type defintions --- src/types/content.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/types/content.ts b/src/types/content.ts index 621d66c3..f02eed1a 100644 --- a/src/types/content.ts +++ b/src/types/content.ts @@ -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; /** Optional. Output response mimetype of the generated candidate text. * Supported mimetype: * - `text/plain`: (default) Text output.