You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dyn/firebaseml_v2beta.projects.locations.publishers.models.html
+71
Original file line number
Diff line number
Diff line change
@@ -115,6 +115,7 @@ <h3>Method Details</h3>
115
115
"language": "A String", # Required. Programming language of the `code`.
116
116
},
117
117
"fileData": { # URI based data. # Optional. URI based data.
118
+
"displayName": "A String", # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is not currently used in the Gemini GenerateContent calls.
"data": "A String", # Required. Raw bytes.
136
+
"displayName": "A String", # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is not currently used in the Gemini GenerateContent calls.
135
137
"mimeType": "A String", # Required. The IANA standard MIME type of the source data.
136
138
},
137
139
"text": "A String", # Optional. Text part (can be code).
@@ -212,6 +214,9 @@ <h3>Method Details</h3>
212
214
"A String",
213
215
],
214
216
"temperature": 3.14, # Optional. Controls the randomness of predictions.
217
+
"thinkingConfig": { # Config for thinking features. # Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking.
218
+
"includeThoughts": True or False, # Optional. Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.
219
+
},
215
220
"topK": 3.14, # Optional. If specified, top-k sampling will be used.
216
221
"topP": 3.14, # Optional. If specified, nucleus sampling will be used.
217
222
},
@@ -231,6 +236,7 @@ <h3>Method Details</h3>
231
236
"language": "A String", # Required. Programming language of the `code`.
232
237
},
233
238
"fileData": { # URI based data. # Optional. URI based data.
239
+
"displayName": "A String", # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is not currently used in the Gemini GenerateContent calls.
"data": "A String", # Required. Raw bytes.
257
+
"displayName": "A String", # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is not currently used in the Gemini GenerateContent calls.
251
258
"mimeType": "A String", # Required. The IANA standard MIME type of the source data.
252
259
},
253
260
"text": "A String", # Optional. Text part (can be code).
@@ -399,6 +406,12 @@ <h3>Method Details</h3>
399
406
An object of the form:
400
407
401
408
{ # Response message for PredictionService.CountTokens.
409
+
"promptTokensDetails": [ # Output only. List of modalities that were processed in the request input.
410
+
{ # Represents token counting info for a single modality.
411
+
"modality": "A String", # The modality associated with this token count.
412
+
"tokenCount": 42, # Number of tokens.
413
+
},
414
+
],
402
415
"totalBillableCharacters": 42, # The total number of billable characters counted across all instances from the request.
403
416
"totalTokens": 42, # The total number of tokens counted across all instances from the request.
404
417
}</pre>
@@ -428,6 +441,7 @@ <h3>Method Details</h3>
428
441
"language": "A String", # Required. Programming language of the `code`.
429
442
},
430
443
"fileData": { # URI based data. # Optional. URI based data.
444
+
"displayName": "A String", # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is not currently used in the Gemini GenerateContent calls.
"data": "A String", # Required. Raw bytes.
462
+
"displayName": "A String", # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is not currently used in the Gemini GenerateContent calls.
448
463
"mimeType": "A String", # Required. The IANA standard MIME type of the source data.
449
464
},
450
465
"text": "A String", # Optional. Text part (can be code).
@@ -525,6 +540,9 @@ <h3>Method Details</h3>
525
540
"A String",
526
541
],
527
542
"temperature": 3.14, # Optional. Controls the randomness of predictions.
543
+
"thinkingConfig": { # Config for thinking features. # Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking.
544
+
"includeThoughts": True or False, # Optional. Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.
545
+
},
528
546
"topK": 3.14, # Optional. If specified, top-k sampling will be used.
529
547
"topP": 3.14, # Optional. If specified, nucleus sampling will be used.
530
548
},
@@ -550,6 +568,7 @@ <h3>Method Details</h3>
550
568
"language": "A String", # Required. Programming language of the `code`.
551
569
},
552
570
"fileData": { # URI based data. # Optional. URI based data.
571
+
"displayName": "A String", # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is not currently used in the Gemini GenerateContent calls.
"data": "A String", # Required. Raw bytes.
589
+
"displayName": "A String", # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is not currently used in the Gemini GenerateContent calls.
570
590
"mimeType": "A String", # Required. The IANA standard MIME type of the source data.
571
591
},
572
592
"text": "A String", # Optional. Text part (can be code).
@@ -764,6 +784,7 @@ <h3>Method Details</h3>
764
784
"language": "A String", # Required. Programming language of the `code`.
765
785
},
766
786
"fileData": { # URI based data. # Optional. URI based data.
787
+
"displayName": "A String", # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is not currently used in the Gemini GenerateContent calls.
"data": "A String", # Required. Raw bytes.
805
+
"displayName": "A String", # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is not currently used in the Gemini GenerateContent calls.
784
806
"mimeType": "A String", # Required. The IANA standard MIME type of the source data.
785
807
},
786
808
"text": "A String", # Optional. Text part (can be code).
@@ -872,6 +894,7 @@ <h3>Method Details</h3>
872
894
],
873
895
},
874
896
],
897
+
"createTime": "A String", # Output only. Timestamp when the request is made to the server.
875
898
"modelVersion": "A String", # Output only. The model version used to generate the response.
876
899
"promptFeedback": { # Content filter results for a prompt sent in the request. # Output only. Content filter results for a prompt sent in the request. Note: Sent only in the first stream chunk. Only happens when no candidates were generated due to content violations.
"responseId": "A String", # Output only. response_id is used to identify each response. It is the encoding of the event_id.
890
914
"usageMetadata": { # Usage metadata about response(s). # Usage metadata about the response(s).
915
+
"cacheTokensDetails": [ # Output only. List of modalities of the cached content in the request input.
916
+
{ # Represents token counting info for a single modality.
917
+
"modality": "A String", # The modality associated with this token count.
918
+
"tokenCount": 42, # Number of tokens.
919
+
},
920
+
],
891
921
"cachedContentTokenCount": 42, # Output only. Number of tokens in the cached part in the input (the cached content).
892
922
"candidatesTokenCount": 42, # Number of tokens in the response(s).
923
+
"candidatesTokensDetails": [ # Output only. List of modalities that were returned in the response.
924
+
{ # Represents token counting info for a single modality.
925
+
"modality": "A String", # The modality associated with this token count.
926
+
"tokenCount": 42, # Number of tokens.
927
+
},
928
+
],
893
929
"promptTokenCount": 42, # Number of tokens in the request. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content.
930
+
"promptTokensDetails": [ # Output only. List of modalities that were processed in the request input.
931
+
{ # Represents token counting info for a single modality.
932
+
"modality": "A String", # The modality associated with this token count.
933
+
"tokenCount": 42, # Number of tokens.
934
+
},
935
+
],
894
936
"totalTokenCount": 42, # Total token count for prompt and response candidates.
895
937
},
896
938
}</pre>
@@ -920,6 +962,7 @@ <h3>Method Details</h3>
920
962
"language": "A String", # Required. Programming language of the `code`.
921
963
},
922
964
"fileData": { # URI based data. # Optional. URI based data.
965
+
"displayName": "A String", # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is not currently used in the Gemini GenerateContent calls.
"data": "A String", # Required. Raw bytes.
983
+
"displayName": "A String", # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is not currently used in the Gemini GenerateContent calls.
940
984
"mimeType": "A String", # Required. The IANA standard MIME type of the source data.
941
985
},
942
986
"text": "A String", # Optional. Text part (can be code).
@@ -1017,6 +1061,9 @@ <h3>Method Details</h3>
1017
1061
"A String",
1018
1062
],
1019
1063
"temperature": 3.14, # Optional. Controls the randomness of predictions.
1064
+
"thinkingConfig": { # Config for thinking features. # Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking.
1065
+
"includeThoughts": True or False, # Optional. Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.
1066
+
},
1020
1067
"topK": 3.14, # Optional. If specified, top-k sampling will be used.
1021
1068
"topP": 3.14, # Optional. If specified, nucleus sampling will be used.
1022
1069
},
@@ -1042,6 +1089,7 @@ <h3>Method Details</h3>
1042
1089
"language": "A String", # Required. Programming language of the `code`.
1043
1090
},
1044
1091
"fileData": { # URI based data. # Optional. URI based data.
1092
+
"displayName": "A String", # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is not currently used in the Gemini GenerateContent calls.
"data": "A String", # Required. Raw bytes.
1110
+
"displayName": "A String", # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is not currently used in the Gemini GenerateContent calls.
1062
1111
"mimeType": "A String", # Required. The IANA standard MIME type of the source data.
1063
1112
},
1064
1113
"text": "A String", # Optional. Text part (can be code).
@@ -1256,6 +1305,7 @@ <h3>Method Details</h3>
1256
1305
"language": "A String", # Required. Programming language of the `code`.
1257
1306
},
1258
1307
"fileData": { # URI based data. # Optional. URI based data.
1308
+
"displayName": "A String", # Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is not currently used in the Gemini GenerateContent calls.
"data": "A String", # Required. Raw bytes.
1326
+
"displayName": "A String", # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is not currently used in the Gemini GenerateContent calls.
1276
1327
"mimeType": "A String", # Required. The IANA standard MIME type of the source data.
1277
1328
},
1278
1329
"text": "A String", # Optional. Text part (can be code).
@@ -1364,6 +1415,7 @@ <h3>Method Details</h3>
1364
1415
],
1365
1416
},
1366
1417
],
1418
+
"createTime": "A String", # Output only. Timestamp when the request is made to the server.
1367
1419
"modelVersion": "A String", # Output only. The model version used to generate the response.
1368
1420
"promptFeedback": { # Content filter results for a prompt sent in the request. # Output only. Content filter results for a prompt sent in the request. Note: Sent only in the first stream chunk. Only happens when no candidates were generated due to content violations.
"responseId": "A String", # Output only. response_id is used to identify each response. It is the encoding of the event_id.
1382
1435
"usageMetadata": { # Usage metadata about response(s). # Usage metadata about the response(s).
1436
+
"cacheTokensDetails": [ # Output only. List of modalities of the cached content in the request input.
1437
+
{ # Represents token counting info for a single modality.
1438
+
"modality": "A String", # The modality associated with this token count.
1439
+
"tokenCount": 42, # Number of tokens.
1440
+
},
1441
+
],
1383
1442
"cachedContentTokenCount": 42, # Output only. Number of tokens in the cached part in the input (the cached content).
1384
1443
"candidatesTokenCount": 42, # Number of tokens in the response(s).
1444
+
"candidatesTokensDetails": [ # Output only. List of modalities that were returned in the response.
1445
+
{ # Represents token counting info for a single modality.
1446
+
"modality": "A String", # The modality associated with this token count.
1447
+
"tokenCount": 42, # Number of tokens.
1448
+
},
1449
+
],
1385
1450
"promptTokenCount": 42, # Number of tokens in the request. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content.
1451
+
"promptTokensDetails": [ # Output only. List of modalities that were processed in the request input.
1452
+
{ # Represents token counting info for a single modality.
1453
+
"modality": "A String", # The modality associated with this token count.
1454
+
"tokenCount": 42, # Number of tokens.
1455
+
},
1456
+
],
1386
1457
"totalTokenCount": 42, # Total token count for prompt and response candidates.
0 commit comments