From abd3845d7aa23152bc736c85d804cf885dfe5045 Mon Sep 17 00:00:00 2001 From: wong2 Date: Fri, 16 Aug 2024 18:39:47 +0800 Subject: [PATCH] Fix requestOptions in startChat --- packages/main/src/models/generative-model.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/main/src/models/generative-model.ts b/packages/main/src/models/generative-model.ts index 1c3b09d..7cd3fe6 100644 --- a/packages/main/src/models/generative-model.ts +++ b/packages/main/src/models/generative-model.ts @@ -59,7 +59,6 @@ export class GenerativeModel { model: string; generationConfig: GenerationConfig; safetySettings: SafetySetting[]; - requestOptions: RequestOptions; tools?: Tool[]; toolConfig?: ToolConfig; systemInstruction?: Content; @@ -172,7 +171,7 @@ export class GenerativeModel { cachedContent: this.cachedContent?.name, ...startChatParams, }, - this.requestOptions, + this._requestOptions, ); }