Skip to content

Commit

Permalink
Fix requestOptions in startChat
Browse files Browse the repository at this point in the history
  • Loading branch information
wong2 committed Aug 20, 2024
1 parent 1679f40 commit 424bd62
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/models/generative-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export class GenerativeModel {
model: string;
generationConfig: GenerationConfig;
safetySettings: SafetySetting[];
requestOptions: RequestOptions;
tools?: Tool[];
toolConfig?: ToolConfig;
systemInstruction?: Content;
Expand Down Expand Up @@ -172,7 +171,7 @@ export class GenerativeModel {
cachedContent: this.cachedContent?.name,
...startChatParams,
},
this.requestOptions,
this._requestOptions,
);
}

Expand Down

0 comments on commit 424bd62

Please sign in to comment.