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.GoogleCloudAiplatformV1beta1GenerationConfig.properties.mediaResolution.type (Total Keys: 1)
- schemas.GoogleCloudAiplatformV1beta1GenerationConfig.properties.responseModalities (Total Keys: 2)
- schemas.GoogleCloudAiplatformV1beta1GenerationConfig.properties.speechConfig.$ref (Total Keys: 1)
- schemas.GoogleCloudAiplatformV1beta1PrebuiltVoiceConfig (Total Keys: 3)
- schemas.GoogleCloudAiplatformV1beta1SpeechConfig (Total Keys: 3)
- schemas.GoogleCloudAiplatformV1beta1Tool.properties.googleSearch.$ref (Total Keys: 1)
- schemas.GoogleCloudAiplatformV1beta1ToolGoogleSearch (Total Keys: 2)
- schemas.GoogleCloudAiplatformV1beta1VoiceConfig (Total Keys: 3)
  • Loading branch information
yoshi-automation committed Dec 10, 2024
1 parent c195e5a commit ccd8de6
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,13 @@ <h3>Method Details</h3>
&quot;frequencyPenalty&quot;: 3.14, # Optional. Frequency penalties.
&quot;logprobs&quot;: 42, # Optional. Logit probabilities.
&quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of output tokens to generate per message.
&quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. If specified, the media resolution specified will be used.
&quot;presencePenalty&quot;: 3.14, # Optional. Positive penalties.
&quot;responseLogprobs&quot;: True or False, # Optional. If true, export the logprobs results in response.
&quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.
&quot;responseModalities&quot;: [ # Optional. The modalities of the response.
&quot;A String&quot;,
],
&quot;responseSchema&quot;: { # 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. # Optional. The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response.
&quot;anyOf&quot;: [ # Optional. The value should be validated against any (one or more) of the subschemas in the list.
# Object with schema name: GoogleCloudAiplatformV1beta1Schema
Expand Down Expand Up @@ -196,6 +200,13 @@ <h3>Method Details</h3>
},
},
&quot;seed&quot;: 42, # Optional. Seed.
&quot;speechConfig&quot;: { # The speech generation config. # Optional. The speech generation config.
&quot;voiceConfig&quot;: { # The configuration for the voice to use. # The configuration for the speaker to use.
&quot;prebuiltVoiceConfig&quot;: { # The configuration for the prebuilt speaker to use. # The configuration for the prebuilt voice to use.
&quot;voiceName&quot;: &quot;A String&quot;, # The name of the preset voice to use.
},
},
},
&quot;stopSequences&quot;: [ # Optional. Stop sequences.
&quot;A String&quot;,
],
Expand Down Expand Up @@ -325,6 +336,8 @@ <h3>Method Details</h3>
},
},
],
&quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
},
&quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search.
&quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
&quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
Expand Down Expand Up @@ -448,9 +461,13 @@ <h3>Method Details</h3>
&quot;frequencyPenalty&quot;: 3.14, # Optional. Frequency penalties.
&quot;logprobs&quot;: 42, # Optional. Logit probabilities.
&quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of output tokens to generate per message.
&quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. If specified, the media resolution specified will be used.
&quot;presencePenalty&quot;: 3.14, # Optional. Positive penalties.
&quot;responseLogprobs&quot;: True or False, # Optional. If true, export the logprobs results in response.
&quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.
&quot;responseModalities&quot;: [ # Optional. The modalities of the response.
&quot;A String&quot;,
],
&quot;responseSchema&quot;: { # 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. # Optional. The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response.
&quot;anyOf&quot;: [ # Optional. The value should be validated against any (one or more) of the subschemas in the list.
# Object with schema name: GoogleCloudAiplatformV1beta1Schema
Expand Down Expand Up @@ -494,6 +511,13 @@ <h3>Method Details</h3>
},
},
&quot;seed&quot;: 42, # Optional. Seed.
&quot;speechConfig&quot;: { # The speech generation config. # Optional. The speech generation config.
&quot;voiceConfig&quot;: { # The configuration for the voice to use. # The configuration for the speaker to use.
&quot;prebuiltVoiceConfig&quot;: { # The configuration for the prebuilt speaker to use. # The configuration for the prebuilt voice to use.
&quot;voiceName&quot;: &quot;A String&quot;, # The name of the preset voice to use.
},
},
},
&quot;stopSequences&quot;: [ # Optional. Stop sequences.
&quot;A String&quot;,
],
Expand Down Expand Up @@ -637,6 +661,8 @@ <h3>Method Details</h3>
},
},
],
&quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
},
&quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search.
&quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
&quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
Expand Down Expand Up @@ -917,9 +943,13 @@ <h3>Method Details</h3>
&quot;frequencyPenalty&quot;: 3.14, # Optional. Frequency penalties.
&quot;logprobs&quot;: 42, # Optional. Logit probabilities.
&quot;maxOutputTokens&quot;: 42, # Optional. The maximum number of output tokens to generate per message.
&quot;mediaResolution&quot;: &quot;A String&quot;, # Optional. If specified, the media resolution specified will be used.
&quot;presencePenalty&quot;: 3.14, # Optional. Positive penalties.
&quot;responseLogprobs&quot;: True or False, # Optional. If true, export the logprobs results in response.
&quot;responseMimeType&quot;: &quot;A String&quot;, # Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.
&quot;responseModalities&quot;: [ # Optional. The modalities of the response.
&quot;A String&quot;,
],
&quot;responseSchema&quot;: { # 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. # Optional. The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response.
&quot;anyOf&quot;: [ # Optional. The value should be validated against any (one or more) of the subschemas in the list.
# Object with schema name: GoogleCloudAiplatformV1beta1Schema
Expand Down Expand Up @@ -963,6 +993,13 @@ <h3>Method Details</h3>
},
},
&quot;seed&quot;: 42, # Optional. Seed.
&quot;speechConfig&quot;: { # The speech generation config. # Optional. The speech generation config.
&quot;voiceConfig&quot;: { # The configuration for the voice to use. # The configuration for the speaker to use.
&quot;prebuiltVoiceConfig&quot;: { # The configuration for the prebuilt speaker to use. # The configuration for the prebuilt voice to use.
&quot;voiceName&quot;: &quot;A String&quot;, # The name of the preset voice to use.
},
},
},
&quot;stopSequences&quot;: [ # Optional. Stop sequences.
&quot;A String&quot;,
],
Expand Down Expand Up @@ -1106,6 +1143,8 @@ <h3>Method Details</h3>
},
},
],
&quot;googleSearch&quot;: { # GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. # Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
},
&quot;googleSearchRetrieval&quot;: { # Tool to retrieve public web data for grounding, powered by Google. # Optional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search.
&quot;dynamicRetrievalConfig&quot;: { # Describes the options to customize dynamic retrieval. # Specifies the dynamic retrieval configuration for the given source.
&quot;dynamicThreshold&quot;: 3.14, # Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
Expand Down
84 changes: 83 additions & 1 deletion googleapiclient/discovery_cache/documents/firebaseml.v2beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
}
}
},
"revision": "20241117",
"revision": "20241204",
"rootUrl": "https://firebaseml.googleapis.com/",
"schemas": {
"Date": {
Expand Down Expand Up @@ -812,6 +812,22 @@
"format": "int32",
"type": "integer"
},
"mediaResolution": {
"description": "Optional. If specified, the media resolution specified will be used.",
"enum": [
"MEDIA_RESOLUTION_UNSPECIFIED",
"MEDIA_RESOLUTION_LOW",
"MEDIA_RESOLUTION_MEDIUM",
"MEDIA_RESOLUTION_HIGH"
],
"enumDescriptions": [
"Media resolution has not been set.",
"Media resolution set to low (64 tokens).",
"Media resolution set to medium (256 tokens).",
"Media resolution set to high (zoomed reframing with 256 tokens)."
],
"type": "string"
},
"presencePenalty": {
"description": "Optional. Positive penalties.",
"format": "float",
Expand All @@ -825,6 +841,25 @@
"description": "Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.",
"type": "string"
},
"responseModalities": {
"description": "Optional. The modalities of the response.",
"items": {
"enum": [
"MODALITY_UNSPECIFIED",
"TEXT",
"IMAGE",
"AUDIO"
],
"enumDescriptions": [
"Unspecified modality. Will be processed as text.",
"Text modality.",
"Image modality.",
"Audio modality."
],
"type": "string"
},
"type": "array"
},
"responseSchema": {
"$ref": "GoogleCloudAiplatformV1beta1Schema",
"description": "Optional. The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response."
Expand All @@ -838,6 +873,10 @@
"format": "int32",
"type": "integer"
},
"speechConfig": {
"$ref": "GoogleCloudAiplatformV1beta1SpeechConfig",
"description": "Optional. The speech generation config."
},
"stopSequences": {
"description": "Optional. Stop sequences.",
"items": {
Expand Down Expand Up @@ -1138,6 +1177,17 @@
},
"type": "object"
},
"GoogleCloudAiplatformV1beta1PrebuiltVoiceConfig": {
"description": "The configuration for the prebuilt speaker to use.",
"id": "GoogleCloudAiplatformV1beta1PrebuiltVoiceConfig",
"properties": {
"voiceName": {
"description": "The name of the preset voice to use.",
"type": "string"
}
},
"type": "object"
},
"GoogleCloudAiplatformV1beta1RagRetrievalConfig": {
"description": "Specifies the context retrieval config.",
"id": "GoogleCloudAiplatformV1beta1RagRetrievalConfig",
Expand Down Expand Up @@ -1590,6 +1640,17 @@
},
"type": "object"
},
"GoogleCloudAiplatformV1beta1SpeechConfig": {
"description": "The speech generation config.",
"id": "GoogleCloudAiplatformV1beta1SpeechConfig",
"properties": {
"voiceConfig": {
"$ref": "GoogleCloudAiplatformV1beta1VoiceConfig",
"description": "The configuration for the speaker to use."
}
},
"type": "object"
},
"GoogleCloudAiplatformV1beta1Tool": {
"description": "Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).",
"id": "GoogleCloudAiplatformV1beta1Tool",
Expand All @@ -1605,6 +1666,10 @@
},
"type": "array"
},
"googleSearch": {
"$ref": "GoogleCloudAiplatformV1beta1ToolGoogleSearch",
"description": "Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google."
},
"googleSearchRetrieval": {
"$ref": "GoogleCloudAiplatformV1beta1GoogleSearchRetrieval",
"description": "Optional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search."
Expand Down Expand Up @@ -1633,6 +1698,12 @@
},
"type": "object"
},
"GoogleCloudAiplatformV1beta1ToolGoogleSearch": {
"description": "GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.",
"id": "GoogleCloudAiplatformV1beta1ToolGoogleSearch",
"properties": {},
"type": "object"
},
"GoogleCloudAiplatformV1beta1VertexAISearch": {
"description": "Retrieve from Vertex AI Search datastore for grounding. See https://cloud.google.com/products/agent-builder",
"id": "GoogleCloudAiplatformV1beta1VertexAISearch",
Expand Down Expand Up @@ -1717,6 +1788,17 @@
},
"type": "object"
},
"GoogleCloudAiplatformV1beta1VoiceConfig": {
"description": "The configuration for the voice to use.",
"id": "GoogleCloudAiplatformV1beta1VoiceConfig",
"properties": {
"prebuiltVoiceConfig": {
"$ref": "GoogleCloudAiplatformV1beta1PrebuiltVoiceConfig",
"description": "The configuration for the prebuilt voice to use."
}
},
"type": "object"
},
"ModelOperationMetadata": {
"description": "This is returned in the longrunning operations for create/update.",
"id": "ModelOperationMetadata",
Expand Down

0 comments on commit ccd8de6

Please sign in to comment.