Skip to content

Commit

Permalink
feat(firebaseml): update the API
Browse files Browse the repository at this point in the history
#### 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
  • Loading branch information
yoshi-automation authored and sofisl committed Aug 27, 2024
1 parent 8f190a1 commit b6ef740
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
13 changes: 10 additions & 3 deletions discovery/firebaseml-v2beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
}
}
},
"revision": "20240813",
"revision": "20240821",
"rootUrl": "https://firebaseml.googleapis.com/",
"schemas": {
"Date": {
Expand Down Expand Up @@ -548,7 +548,7 @@
"description": "Properties of the object.",
"type": "any"
},
"description": "Required. The function response in JSON object format.",
"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.",
"type": "object"
}
},
Expand Down Expand Up @@ -665,6 +665,12 @@
"description": "Usage metadata about response(s).",
"id": "GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata",
"properties": {
"cachedContentTokenCount": {
"description": "Output only. Number of tokens in the cached part in the input (the cached content).",
"format": "int32",
"readOnly": true,
"type": "integer"
},
"candidatesTokenCount": {
"description": "Number of tokens in the response(s).",
"format": "int32",
Expand All @@ -676,6 +682,7 @@
"type": "integer"
},
"totalTokenCount": {
"description": "Total token count for prompt and response candidates.",
"format": "int32",
"type": "integer"
}
Expand Down Expand Up @@ -1104,7 +1111,7 @@
"type": "object"
},
"GoogleCloudAiplatformV1beta1Schema": {
"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.",
"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.",
"id": "GoogleCloudAiplatformV1beta1Schema",
"properties": {
"default": {
Expand Down
11 changes: 9 additions & 2 deletions src/apis/firebaseml/v2beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ export namespace firebaseml_v2beta {
*/
name?: string | null;
/**
* Required. The function response in JSON object format.
* 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.
*/
response?: {[key: string]: any} | null;
}
Expand Down Expand Up @@ -424,6 +424,10 @@ export namespace firebaseml_v2beta {
* Usage metadata about response(s).
*/
export interface Schema$GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata {
/**
* Output only. Number of tokens in the cached part in the input (the cached content).
*/
cachedContentTokenCount?: number | null;
/**
* Number of tokens in the response(s).
*/
Expand All @@ -432,6 +436,9 @@ export namespace firebaseml_v2beta {
* 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.
*/
promptTokenCount?: number | null;
/**
* Total token count for prompt and response candidates.
*/
totalTokenCount?: number | null;
}
/**
Expand Down Expand Up @@ -696,7 +703,7 @@ export namespace firebaseml_v2beta {
threshold?: string | null;
}
/**
* 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.
* 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.
*/
export interface Schema$GoogleCloudAiplatformV1beta1Schema {
/**
Expand Down

0 comments on commit b6ef740

Please sign in to comment.