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.GenerationConfig.properties.responseStyle.description
- schemas.GenerationConfig.properties.responseStyle.enum
- schemas.GenerationConfig.properties.responseStyle.enumDescriptions
- schemas.GenerationConfig.properties.responseStyle.type
  • Loading branch information
yoshi-automation authored and sofisl committed May 7, 2024
1 parent a82f599 commit 2f8891d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
18 changes: 17 additions & 1 deletion discovery/firebaseml-v2beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
}
}
},
"revision": "20240429",
"revision": "20240503",
"rootUrl": "https://firebaseml.googleapis.com/",
"schemas": {
"Blob": {
Expand Down Expand Up @@ -627,6 +627,22 @@
"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"
},
"responseStyle": {
"description": "Optional. Control Three levels of creativity in the model output. Default: RESPONSE_STYLE_BALANCED",
"enum": [
"RESPONSE_STYLE_UNSPECIFIED",
"RESPONSE_STYLE_PRECISE",
"RESPONSE_STYLE_BALANCED",
"RESPONSE_STYLE_CREATIVE"
],
"enumDescriptions": [
"response style unspecified.",
"Precise response.",
"Default response style.",
"Creative response style."
],
"type": "string"
},
"stopSequences": {
"description": "Optional. Stop sequences.",
"items": {
Expand Down
4 changes: 4 additions & 0 deletions src/apis/firebaseml/v2beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,10 @@ export namespace firebaseml_v2beta {
* 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.
*/
responseMimeType?: string | null;
/**
* Optional. Control Three levels of creativity in the model output. Default: RESPONSE_STYLE_BALANCED
*/
responseStyle?: string | null;
/**
* Optional. Stop sequences.
*/
Expand Down

0 comments on commit 2f8891d

Please sign in to comment.