@@ -39,8 +39,8 @@ export declare class TemplateGenerativeModel
3939
4040| Method | Modifiers | Description |
4141| --- | --- | --- |
42- | [generateContent (templateId , templateVariables )](./ai .templategenerativemodel .md #templategenerativemodelgeneratecontent ) | | <b ><i >(Public Preview )</i ></b > Makes a single non -streaming call to the model and returns an object containing a single [GenerateContentResponse ](./ai .generatecontentresponse .md #generatecontentresponse_interface )<!-- -->. |
43- | [generateContentStream (templateId , templateVariables )](./ai .templategenerativemodel .md #templategenerativemodelgeneratecontentstream ) | | <b ><i >(Public Preview )</i ></b > Makes a single streaming call to the model and returns an object containing an iterable stream that iterates over all chunks in the streaming response as well as a promise that returns the final aggregated response . |
42+ | [generateContent (templateId , templateVariables , singleRequestOptions )](./ai .templategenerativemodel .md #templategenerativemodelgeneratecontent ) | | <b ><i >(Public Preview )</i ></b > Makes a single non -streaming call to the model and returns an object containing a single [GenerateContentResponse ](./ai .generatecontentresponse .md #generatecontentresponse_interface )<!-- -->. |
43+ | [generateContentStream (templateId , templateVariables , singleRequestOptions )](./ai .templategenerativemodel .md #templategenerativemodelgeneratecontentstream ) | | <b ><i >(Public Preview )</i ></b > Makes a single streaming call to the model and returns an object containing an iterable stream that iterates over all chunks in the streaming response as well as a promise that returns the final aggregated response . |
4444
4545## TemplateGenerativeModel .(constructor )
4646
@@ -85,7 +85,8 @@ Makes a single non-streaming call to the model and returns an object containing
8585<b >Signature :</b >
8686
8787```typescript
88- generateContent (templateId : string , templateVariables : object ): Promise <GenerateContentResult >;
88+ generateContent (templateId : string , templateVariables : object , // anything!
89+ singleRequestOptions ?: SingleRequestOptions ): Promise <GenerateContentResult >;
8990```
9091
9192#### Parameters
@@ -94,6 +95,7 @@ generateContent(templateId: string, templateVariables: object): Promise<Generate
9495| --- | --- | --- |
9596| templateId | string | The ID of the server -side template to execute . |
9697| templateVariables | object | A key -value map of variables to populate the template with . |
98+ | singleRequestOptions | [SingleRequestOptions ](./ai .singlerequestoptions .md #singlerequestoptions_interface ) | |
9799
98100<b >Returns :</b >
99101
@@ -109,7 +111,7 @@ Makes a single streaming call to the model and returns an object containing an i
109111<b >Signature :</b >
110112
111113```typescript
112- generateContentStream (templateId : string , templateVariables : object ): Promise <GenerateContentStreamResult >;
114+ generateContentStream (templateId : string , templateVariables : object , singleRequestOptions ?: SingleRequestOptions ): Promise <GenerateContentStreamResult >;
113115```
114116
115117#### Parameters
@@ -118,6 +120,7 @@ generateContentStream(templateId: string, templateVariables: object): Promise<Ge
118120| --- | --- | --- |
119121| templateId | string | The ID of the server -side template to execute . |
120122| templateVariables | object | A key -value map of variables to populate the template with . |
123+ | singleRequestOptions | [SingleRequestOptions ](./ai .singlerequestoptions .md #singlerequestoptions_interface ) | |
121124
122125<b >Returns :</b >
123126
0 commit comments