Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dbc8544

Browse files
committedJan 28, 2025
feat(firebaseml): update the api
#### firebaseml:v2beta The following keys were added: - schemas.GoogleCloudAiplatformV1beta1Blob.properties.displayName.type (Total Keys: 1) - schemas.GoogleCloudAiplatformV1beta1CountTokensResponse.properties.promptTokensDetails (Total Keys: 3) - schemas.GoogleCloudAiplatformV1beta1FileData.properties.displayName.type (Total Keys: 1) - schemas.GoogleCloudAiplatformV1beta1GenerateContentResponse.properties.createTime (Total Keys: 3) - schemas.GoogleCloudAiplatformV1beta1GenerateContentResponse.properties.responseId (Total Keys: 2) - schemas.GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata.properties.cacheTokensDetails (Total Keys: 3) - schemas.GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata.properties.candidatesTokensDetails (Total Keys: 3) - schemas.GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata.properties.promptTokensDetails (Total Keys: 3) - schemas.GoogleCloudAiplatformV1beta1GenerationConfig.properties.thinkingConfig.$ref (Total Keys: 1) - schemas.GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig (Total Keys: 3) - schemas.GoogleCloudAiplatformV1beta1ModalityTokenCount (Total Keys: 5)
1 parent edd3d29 commit dbc8544

File tree

2 files changed

+170
-1
lines changed

2 files changed

+170
-1
lines changed
 

‎docs/dyn/firebaseml_v2beta.projects.locations.publishers.models.html

+71
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ <h3>Method Details</h3>
115115
&quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
116116
},
117117
&quot;fileData&quot;: { # URI based data. # Optional. URI based data.
118+
&quot;displayName&quot;: &quot;A String&quot;, # 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.
118119
&quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
119120
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
120121
},
@@ -132,6 +133,7 @@ <h3>Method Details</h3>
132133
},
133134
&quot;inlineData&quot;: { # Content blob. # Optional. Inlined bytes data.
134135
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
136+
&quot;displayName&quot;: &quot;A String&quot;, # 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.
135137
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
136138
},
137139
&quot;text&quot;: &quot;A String&quot;, # Optional. Text part (can be code).
@@ -212,6 +214,9 @@ <h3>Method Details</h3>
212214
&quot;A String&quot;,
213215
],
214216
&quot;temperature&quot;: 3.14, # Optional. Controls the randomness of predictions.
217+
&quot;thinkingConfig&quot;: { # Config for thinking features. # Optional. Config for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
218+
&quot;includeThoughts&quot;: True or False, # Optional. Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.
219+
},
215220
&quot;topK&quot;: 3.14, # Optional. If specified, top-k sampling will be used.
216221
&quot;topP&quot;: 3.14, # Optional. If specified, nucleus sampling will be used.
217222
},
@@ -231,6 +236,7 @@ <h3>Method Details</h3>
231236
&quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
232237
},
233238
&quot;fileData&quot;: { # URI based data. # Optional. URI based data.
239+
&quot;displayName&quot;: &quot;A String&quot;, # 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.
234240
&quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
235241
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
236242
},
@@ -248,6 +254,7 @@ <h3>Method Details</h3>
248254
},
249255
&quot;inlineData&quot;: { # Content blob. # Optional. Inlined bytes data.
250256
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
257+
&quot;displayName&quot;: &quot;A String&quot;, # 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.
251258
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
252259
},
253260
&quot;text&quot;: &quot;A String&quot;, # Optional. Text part (can be code).
@@ -399,6 +406,12 @@ <h3>Method Details</h3>
399406
An object of the form:
400407

401408
{ # Response message for PredictionService.CountTokens.
409+
&quot;promptTokensDetails&quot;: [ # Output only. List of modalities that were processed in the request input.
410+
{ # Represents token counting info for a single modality.
411+
&quot;modality&quot;: &quot;A String&quot;, # The modality associated with this token count.
412+
&quot;tokenCount&quot;: 42, # Number of tokens.
413+
},
414+
],
402415
&quot;totalBillableCharacters&quot;: 42, # The total number of billable characters counted across all instances from the request.
403416
&quot;totalTokens&quot;: 42, # The total number of tokens counted across all instances from the request.
404417
}</pre>
@@ -428,6 +441,7 @@ <h3>Method Details</h3>
428441
&quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
429442
},
430443
&quot;fileData&quot;: { # URI based data. # Optional. URI based data.
444+
&quot;displayName&quot;: &quot;A String&quot;, # 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.
431445
&quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
432446
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
433447
},
@@ -445,6 +459,7 @@ <h3>Method Details</h3>
445459
},
446460
&quot;inlineData&quot;: { # Content blob. # Optional. Inlined bytes data.
447461
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
462+
&quot;displayName&quot;: &quot;A String&quot;, # 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.
448463
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
449464
},
450465
&quot;text&quot;: &quot;A String&quot;, # Optional. Text part (can be code).
@@ -525,6 +540,9 @@ <h3>Method Details</h3>
525540
&quot;A String&quot;,
526541
],
527542
&quot;temperature&quot;: 3.14, # Optional. Controls the randomness of predictions.
543+
&quot;thinkingConfig&quot;: { # Config for thinking features. # Optional. Config for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
544+
&quot;includeThoughts&quot;: True or False, # Optional. Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.
545+
},
528546
&quot;topK&quot;: 3.14, # Optional. If specified, top-k sampling will be used.
529547
&quot;topP&quot;: 3.14, # Optional. If specified, nucleus sampling will be used.
530548
},
@@ -550,6 +568,7 @@ <h3>Method Details</h3>
550568
&quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
551569
},
552570
&quot;fileData&quot;: { # URI based data. # Optional. URI based data.
571+
&quot;displayName&quot;: &quot;A String&quot;, # 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.
553572
&quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
554573
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
555574
},
@@ -567,6 +586,7 @@ <h3>Method Details</h3>
567586
},
568587
&quot;inlineData&quot;: { # Content blob. # Optional. Inlined bytes data.
569588
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
589+
&quot;displayName&quot;: &quot;A String&quot;, # 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.
570590
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
571591
},
572592
&quot;text&quot;: &quot;A String&quot;, # Optional. Text part (can be code).
@@ -764,6 +784,7 @@ <h3>Method Details</h3>
764784
&quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
765785
},
766786
&quot;fileData&quot;: { # URI based data. # Optional. URI based data.
787+
&quot;displayName&quot;: &quot;A String&quot;, # 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.
767788
&quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
768789
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
769790
},
@@ -781,6 +802,7 @@ <h3>Method Details</h3>
781802
},
782803
&quot;inlineData&quot;: { # Content blob. # Optional. Inlined bytes data.
783804
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
805+
&quot;displayName&quot;: &quot;A String&quot;, # 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.
784806
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
785807
},
786808
&quot;text&quot;: &quot;A String&quot;, # Optional. Text part (can be code).
@@ -872,6 +894,7 @@ <h3>Method Details</h3>
872894
],
873895
},
874896
],
897+
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the request is made to the server.
875898
&quot;modelVersion&quot;: &quot;A String&quot;, # Output only. The model version used to generate the response.
876899
&quot;promptFeedback&quot;: { # 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.
877900
&quot;blockReason&quot;: &quot;A String&quot;, # Output only. Blocked reason.
@@ -887,10 +910,29 @@ <h3>Method Details</h3>
887910
},
888911
],
889912
},
913+
&quot;responseId&quot;: &quot;A String&quot;, # Output only. response_id is used to identify each response. It is the encoding of the event_id.
890914
&quot;usageMetadata&quot;: { # Usage metadata about response(s). # Usage metadata about the response(s).
915+
&quot;cacheTokensDetails&quot;: [ # Output only. List of modalities of the cached content in the request input.
916+
{ # Represents token counting info for a single modality.
917+
&quot;modality&quot;: &quot;A String&quot;, # The modality associated with this token count.
918+
&quot;tokenCount&quot;: 42, # Number of tokens.
919+
},
920+
],
891921
&quot;cachedContentTokenCount&quot;: 42, # Output only. Number of tokens in the cached part in the input (the cached content).
892922
&quot;candidatesTokenCount&quot;: 42, # Number of tokens in the response(s).
923+
&quot;candidatesTokensDetails&quot;: [ # Output only. List of modalities that were returned in the response.
924+
{ # Represents token counting info for a single modality.
925+
&quot;modality&quot;: &quot;A String&quot;, # The modality associated with this token count.
926+
&quot;tokenCount&quot;: 42, # Number of tokens.
927+
},
928+
],
893929
&quot;promptTokenCount&quot;: 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+
&quot;promptTokensDetails&quot;: [ # Output only. List of modalities that were processed in the request input.
931+
{ # Represents token counting info for a single modality.
932+
&quot;modality&quot;: &quot;A String&quot;, # The modality associated with this token count.
933+
&quot;tokenCount&quot;: 42, # Number of tokens.
934+
},
935+
],
894936
&quot;totalTokenCount&quot;: 42, # Total token count for prompt and response candidates.
895937
},
896938
}</pre>
@@ -920,6 +962,7 @@ <h3>Method Details</h3>
920962
&quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
921963
},
922964
&quot;fileData&quot;: { # URI based data. # Optional. URI based data.
965+
&quot;displayName&quot;: &quot;A String&quot;, # 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.
923966
&quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
924967
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
925968
},
@@ -937,6 +980,7 @@ <h3>Method Details</h3>
937980
},
938981
&quot;inlineData&quot;: { # Content blob. # Optional. Inlined bytes data.
939982
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
983+
&quot;displayName&quot;: &quot;A String&quot;, # 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.
940984
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
941985
},
942986
&quot;text&quot;: &quot;A String&quot;, # Optional. Text part (can be code).
@@ -1017,6 +1061,9 @@ <h3>Method Details</h3>
10171061
&quot;A String&quot;,
10181062
],
10191063
&quot;temperature&quot;: 3.14, # Optional. Controls the randomness of predictions.
1064+
&quot;thinkingConfig&quot;: { # Config for thinking features. # Optional. Config for thinking features. An error will be returned if this field is set for models that don&#x27;t support thinking.
1065+
&quot;includeThoughts&quot;: True or False, # Optional. Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.
1066+
},
10201067
&quot;topK&quot;: 3.14, # Optional. If specified, top-k sampling will be used.
10211068
&quot;topP&quot;: 3.14, # Optional. If specified, nucleus sampling will be used.
10221069
},
@@ -1042,6 +1089,7 @@ <h3>Method Details</h3>
10421089
&quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
10431090
},
10441091
&quot;fileData&quot;: { # URI based data. # Optional. URI based data.
1092+
&quot;displayName&quot;: &quot;A String&quot;, # 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.
10451093
&quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
10461094
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
10471095
},
@@ -1059,6 +1107,7 @@ <h3>Method Details</h3>
10591107
},
10601108
&quot;inlineData&quot;: { # Content blob. # Optional. Inlined bytes data.
10611109
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
1110+
&quot;displayName&quot;: &quot;A String&quot;, # 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.
10621111
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
10631112
},
10641113
&quot;text&quot;: &quot;A String&quot;, # Optional. Text part (can be code).
@@ -1256,6 +1305,7 @@ <h3>Method Details</h3>
12561305
&quot;language&quot;: &quot;A String&quot;, # Required. Programming language of the `code`.
12571306
},
12581307
&quot;fileData&quot;: { # URI based data. # Optional. URI based data.
1308+
&quot;displayName&quot;: &quot;A String&quot;, # 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.
12591309
&quot;fileUri&quot;: &quot;A String&quot;, # Required. URI.
12601310
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
12611311
},
@@ -1273,6 +1323,7 @@ <h3>Method Details</h3>
12731323
},
12741324
&quot;inlineData&quot;: { # Content blob. # Optional. Inlined bytes data.
12751325
&quot;data&quot;: &quot;A String&quot;, # Required. Raw bytes.
1326+
&quot;displayName&quot;: &quot;A String&quot;, # 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.
12761327
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The IANA standard MIME type of the source data.
12771328
},
12781329
&quot;text&quot;: &quot;A String&quot;, # Optional. Text part (can be code).
@@ -1364,6 +1415,7 @@ <h3>Method Details</h3>
13641415
],
13651416
},
13661417
],
1418+
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the request is made to the server.
13671419
&quot;modelVersion&quot;: &quot;A String&quot;, # Output only. The model version used to generate the response.
13681420
&quot;promptFeedback&quot;: { # 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.
13691421
&quot;blockReason&quot;: &quot;A String&quot;, # Output only. Blocked reason.
@@ -1379,10 +1431,29 @@ <h3>Method Details</h3>
13791431
},
13801432
],
13811433
},
1434+
&quot;responseId&quot;: &quot;A String&quot;, # Output only. response_id is used to identify each response. It is the encoding of the event_id.
13821435
&quot;usageMetadata&quot;: { # Usage metadata about response(s). # Usage metadata about the response(s).
1436+
&quot;cacheTokensDetails&quot;: [ # Output only. List of modalities of the cached content in the request input.
1437+
{ # Represents token counting info for a single modality.
1438+
&quot;modality&quot;: &quot;A String&quot;, # The modality associated with this token count.
1439+
&quot;tokenCount&quot;: 42, # Number of tokens.
1440+
},
1441+
],
13831442
&quot;cachedContentTokenCount&quot;: 42, # Output only. Number of tokens in the cached part in the input (the cached content).
13841443
&quot;candidatesTokenCount&quot;: 42, # Number of tokens in the response(s).
1444+
&quot;candidatesTokensDetails&quot;: [ # Output only. List of modalities that were returned in the response.
1445+
{ # Represents token counting info for a single modality.
1446+
&quot;modality&quot;: &quot;A String&quot;, # The modality associated with this token count.
1447+
&quot;tokenCount&quot;: 42, # Number of tokens.
1448+
},
1449+
],
13851450
&quot;promptTokenCount&quot;: 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+
&quot;promptTokensDetails&quot;: [ # Output only. List of modalities that were processed in the request input.
1452+
{ # Represents token counting info for a single modality.
1453+
&quot;modality&quot;: &quot;A String&quot;, # The modality associated with this token count.
1454+
&quot;tokenCount&quot;: 42, # Number of tokens.
1455+
},
1456+
],
13861457
&quot;totalTokenCount&quot;: 42, # Total token count for prompt and response candidates.
13871458
},
13881459
}</pre>

0 commit comments

Comments
 (0)
Please sign in to comment.