From 02f1d6e8f56ee3dce531248dfa55b3582d28b866 Mon Sep 17 00:00:00 2001 From: afirstenberg <github@addventure.com> Date: Thu, 9 Jan 2025 06:39:38 -0500 Subject: [PATCH] Fix type declarations --- libs/langchain-google-common/src/chat_models.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/langchain-google-common/src/chat_models.ts b/libs/langchain-google-common/src/chat_models.ts index 382991a41362..a345497c0d8f 100644 --- a/libs/langchain-google-common/src/chat_models.ts +++ b/libs/langchain-google-common/src/chat_models.ts @@ -189,15 +189,15 @@ export abstract class ChatGoogleBase<AuthOptions> topK = 40; - presencePenalty = undefined; + presencePenalty: number; - frequencyPenalty = undefined; + frequencyPenalty: number; stopSequences: string[] = []; - logprobs: false; + logprobs: boolean = false; - topLogprobs: 0; + topLogprobs: number = 0; safetySettings: GoogleAISafetySetting[] = [];