File tree Expand file tree Collapse file tree 4 files changed +6
-14
lines changed Expand file tree Collapse file tree 4 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -771,7 +771,9 @@ export class LiveGenerativeModel extends AIModel {
771
771
772
772
// @beta
773
773
export interface LiveModelParams {
774
+ // (undocumented)
774
775
generationConfig? : LiveGenerationConfig ;
776
+ // (undocumented)
775
777
model: string ;
776
778
// (undocumented)
777
779
systemInstruction? : string | Part | Content ;
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ export interface LiveModelParams
25
25
26
26
| Property | Type | Description |
27
27
| --- | --- | --- |
28
- | [generationConfig ](./ai .livemodelparams .md #livemodelparamsgenerationconfig ) | [LiveGenerationConfig ](./ai .livegenerationconfig .md #livegenerationconfig_interface ) | <b ><i >(Public Preview )</i ></b > Configuration parameters used for live content generation . |
29
- | [model ](./ai .livemodelparams .md #livemodelparamsmodel ) | string | <b ><i >(Public Preview )</i ></b > The model name . |
28
+ | [generationConfig ](./ai .livemodelparams .md #livemodelparamsgenerationconfig ) | [LiveGenerationConfig ](./ai .livegenerationconfig .md #livegenerationconfig_interface ) | <b ><i >(Public Preview )</i ></b > |
29
+ | [model ](./ai .livemodelparams .md #livemodelparamsmodel ) | string | <b ><i >(Public Preview )</i ></b > |
30
30
| [systemInstruction ](./ai .livemodelparams .md #livemodelparamssysteminstruction ) | string \| [Part ](./ai .md #part ) \| [Content ](./ai .content .md #content_interface ) | <b ><i >(Public Preview )</i ></b > |
31
31
| [toolConfig ](./ai .livemodelparams .md #livemodelparamstoolconfig ) | [ToolConfig ](./ai .toolconfig .md #toolconfig_interface ) | <b ><i >(Public Preview )</i ></b > |
32
32
| [tools ](./ai .livemodelparams .md #livemodelparamstools ) | [Tool ](./ai .md #tool )<!-- -->\[\] | <b ><i >(Public Preview )</i ></b > |
@@ -36,8 +36,6 @@ export interface LiveModelParams
36
36
> This API is provided as a preview for developers and may change based on feedback that we receive . Do not use this API in a production environment .
37
37
>
38
38
39
- Configuration parameters used for live content generation .
40
-
41
39
<b >Signature :</b >
42
40
43
41
```typescript
@@ -49,8 +47,6 @@ generationConfig?: LiveGenerationConfig;
49
47
> This API is provided as a preview for developers and may change based on feedback that we receive . Do not use this API in a production environment .
50
48
>
51
49
52
- The model name .
53
-
54
50
<b >Signature :</b >
55
51
56
52
```typescript
Original file line number Diff line number Diff line change @@ -112,10 +112,10 @@ describe('NodeWebSocketHandler', () => {
112
112
}
113
113
} ) ( ) ;
114
114
115
- await new Promise ( r => setTimeout ( r , 500 ) ) ;
115
+ await new Promise ( r => setTimeout ( r , 50 ) ) ;
116
116
// The server's `send` method can handle Buffers/Uint8Arrays
117
117
server . clients . forEach ( client => client . send ( bufferData ) ) ;
118
- await new Promise ( r => setTimeout ( r , 500 ) ) ;
118
+ await new Promise ( r => setTimeout ( r , 50 ) ) ;
119
119
await handler . close ( ) ;
120
120
121
121
await consumerPromise ;
Original file line number Diff line number Diff line change @@ -51,13 +51,7 @@ export interface ModelParams extends BaseParams {
51
51
* @beta
52
52
*/
53
53
export interface LiveModelParams {
54
- /**
55
- * The model name.
56
- */
57
54
model : string ;
58
- /**
59
- * Configuration parameters used for live content generation.
60
- */
61
55
generationConfig ?: LiveGenerationConfig ;
62
56
tools ?: Tool [ ] ;
63
57
toolConfig ?: ToolConfig ;
You can’t perform that action at this time.
0 commit comments