Skip to content

Commit b6ef740

Browse files
yoshi-automationsofisl
authored andcommitted
feat(firebaseml): update the API
#### firebaseml:v2beta The following keys were added: - schemas.GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata.properties.cachedContentTokenCount.description - schemas.GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata.properties.cachedContentTokenCount.format - schemas.GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata.properties.cachedContentTokenCount.readOnly - schemas.GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata.properties.cachedContentTokenCount.type - schemas.GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata.properties.totalTokenCount.description The following keys were changed: - schemas.GoogleCloudAiplatformV1beta1FunctionResponse.properties.response.description - schemas.GoogleCloudAiplatformV1beta1Schema.description
1 parent 8f190a1 commit b6ef740

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

discovery/firebaseml-v2beta.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@
206206
}
207207
}
208208
},
209-
"revision": "20240813",
209+
"revision": "20240821",
210210
"rootUrl": "https://firebaseml.googleapis.com/",
211211
"schemas": {
212212
"Date": {
@@ -548,7 +548,7 @@
548548
"description": "Properties of the object.",
549549
"type": "any"
550550
},
551-
"description": "Required. The function response in JSON object format.",
551+
"description": "Required. The function response in JSON object format. Use \"output\" key to specify function output and \"error\" key to specify error details (if any). If \"output\" and \"error\" keys are not specified, then whole \"response\" is treated as function output.",
552552
"type": "object"
553553
}
554554
},
@@ -665,6 +665,12 @@
665665
"description": "Usage metadata about response(s).",
666666
"id": "GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata",
667667
"properties": {
668+
"cachedContentTokenCount": {
669+
"description": "Output only. Number of tokens in the cached part in the input (the cached content).",
670+
"format": "int32",
671+
"readOnly": true,
672+
"type": "integer"
673+
},
668674
"candidatesTokenCount": {
669675
"description": "Number of tokens in the response(s).",
670676
"format": "int32",
@@ -676,6 +682,7 @@
676682
"type": "integer"
677683
},
678684
"totalTokenCount": {
685+
"description": "Total token count for prompt and response candidates.",
679686
"format": "int32",
680687
"type": "integer"
681688
}
@@ -1104,7 +1111,7 @@
11041111
"type": "object"
11051112
},
11061113
"GoogleCloudAiplatformV1beta1Schema": {
1107-
"description": "Schema is used to define the format of input/output data. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). More fields may be added in the future as needed.",
1114+
"description": "Schema is used to define the format of input/output data. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may be added in the future as needed.",
11081115
"id": "GoogleCloudAiplatformV1beta1Schema",
11091116
"properties": {
11101117
"default": {

src/apis/firebaseml/v2beta.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ export namespace firebaseml_v2beta {
349349
*/
350350
name?: string | null;
351351
/**
352-
* Required. The function response in JSON object format.
352+
* Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output.
353353
*/
354354
response?: {[key: string]: any} | null;
355355
}
@@ -424,6 +424,10 @@ export namespace firebaseml_v2beta {
424424
* Usage metadata about response(s).
425425
*/
426426
export interface Schema$GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata {
427+
/**
428+
* Output only. Number of tokens in the cached part in the input (the cached content).
429+
*/
430+
cachedContentTokenCount?: number | null;
427431
/**
428432
* Number of tokens in the response(s).
429433
*/
@@ -432,6 +436,9 @@ export namespace firebaseml_v2beta {
432436
* 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.
433437
*/
434438
promptTokenCount?: number | null;
439+
/**
440+
* Total token count for prompt and response candidates.
441+
*/
435442
totalTokenCount?: number | null;
436443
}
437444
/**
@@ -696,7 +703,7 @@ export namespace firebaseml_v2beta {
696703
threshold?: string | null;
697704
}
698705
/**
699-
* Schema is used to define the format of input/output data. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). More fields may be added in the future as needed.
706+
* Schema is used to define the format of input/output data. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may be added in the future as needed.
700707
*/
701708
export interface Schema$GoogleCloudAiplatformV1beta1Schema {
702709
/**

0 commit comments

Comments
 (0)