From 251c641b13264c4dfea9edc48d510deac85b9e0d Mon Sep 17 00:00:00 2001 From: Daniel La Rocque Date: Wed, 29 May 2024 15:11:03 -0400 Subject: [PATCH 1/4] Bullet supported mimetypes --- docs-devsite/vertexai-preview.generationconfig.md | 4 ++-- packages/vertexai/src/types/requests.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs-devsite/vertexai-preview.generationconfig.md b/docs-devsite/vertexai-preview.generationconfig.md index 3b00214d88b..cf5ed31cbfa 100644 --- a/docs-devsite/vertexai-preview.generationconfig.md +++ b/docs-devsite/vertexai-preview.generationconfig.md @@ -26,7 +26,7 @@ export interface GenerationConfig | [frequencyPenalty](./vertexai-preview.generationconfig.md#generationconfigfrequencypenalty) | number | | | [maxOutputTokens](./vertexai-preview.generationconfig.md#generationconfigmaxoutputtokens) | number | | | [presencePenalty](./vertexai-preview.generationconfig.md#generationconfigpresencepenalty) | number | | -| [responseMimeType](./vertexai-preview.generationconfig.md#generationconfigresponsemimetype) | string | 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](./vertexai-preview.generationconfig.md#generationconfigresponsemimetype) | string | Output response mimetype of the generated candidate text. Supported mimetypes: - 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. | | [stopSequences](./vertexai-preview.generationconfig.md#generationconfigstopsequences) | string\[\] | | | [temperature](./vertexai-preview.generationconfig.md#generationconfigtemperature) | number | | | [topK](./vertexai-preview.generationconfig.md#generationconfigtopk) | number | | @@ -66,7 +66,7 @@ presencePenalty?: number; ## GenerationConfig.responseMimeType -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. +Output response mimetype of the generated candidate text. Supported mimetypes: - `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. Signature: diff --git a/packages/vertexai/src/types/requests.ts b/packages/vertexai/src/types/requests.ts index 5da8f05b6bb..8477a87dad9 100644 --- a/packages/vertexai/src/types/requests.ts +++ b/packages/vertexai/src/types/requests.ts @@ -79,9 +79,9 @@ export interface GenerationConfig { frequencyPenalty?: number; /** * Output response mimetype of the generated candidate text. - * Supported mimetype: - * `text/plain`: (default) Text output. - * `application/json`: JSON response in the candidates. + * Supported mimetypes: + * - `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. From d122b763b95649b1d8768eab44dfafe525c5201e Mon Sep 17 00:00:00 2001 From: Daniel La Rocque Date: Wed, 29 May 2024 15:18:55 -0400 Subject: [PATCH 2/4] Add empty changeset --- .changeset/unlucky-radios-invent.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .changeset/unlucky-radios-invent.md diff --git a/.changeset/unlucky-radios-invent.md b/.changeset/unlucky-radios-invent.md new file mode 100644 index 00000000000..a845151cc84 --- /dev/null +++ b/.changeset/unlucky-radios-invent.md @@ -0,0 +1,2 @@ +--- +--- From 21c008444d2a2b39ff46e22bcaf0d8528241c411 Mon Sep 17 00:00:00 2001 From: Daniel La Rocque Date: Wed, 29 May 2024 16:46:50 -0400 Subject: [PATCH 3/4] Convert bullets to a single sentence for easier rendering --- docs-devsite/vertexai-preview.generationconfig.md | 4 ++-- packages/vertexai/src/types/requests.ts | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/docs-devsite/vertexai-preview.generationconfig.md b/docs-devsite/vertexai-preview.generationconfig.md index cf5ed31cbfa..b14dfea053b 100644 --- a/docs-devsite/vertexai-preview.generationconfig.md +++ b/docs-devsite/vertexai-preview.generationconfig.md @@ -26,7 +26,7 @@ export interface GenerationConfig | [frequencyPenalty](./vertexai-preview.generationconfig.md#generationconfigfrequencypenalty) | number | | | [maxOutputTokens](./vertexai-preview.generationconfig.md#generationconfigmaxoutputtokens) | number | | | [presencePenalty](./vertexai-preview.generationconfig.md#generationconfigpresencepenalty) | number | | -| [responseMimeType](./vertexai-preview.generationconfig.md#generationconfigresponsemimetype) | string | Output response mimetype of the generated candidate text. Supported mimetypes: - 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](./vertexai-preview.generationconfig.md#generationconfigresponsemimetype) | string | Output response mimetype of the generated candidate text. Supported mimetypes are text/plain (default, text output) and 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. | | [stopSequences](./vertexai-preview.generationconfig.md#generationconfigstopsequences) | string\[\] | | | [temperature](./vertexai-preview.generationconfig.md#generationconfigtemperature) | number | | | [topK](./vertexai-preview.generationconfig.md#generationconfigtopk) | number | | @@ -66,7 +66,7 @@ presencePenalty?: number; ## GenerationConfig.responseMimeType -Output response mimetype of the generated candidate text. Supported mimetypes: - `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. +Output response mimetype of the generated candidate text. Supported mimetypes are `text/plain` (default, text output) and `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. Signature: diff --git a/packages/vertexai/src/types/requests.ts b/packages/vertexai/src/types/requests.ts index 8477a87dad9..f348a62aa6f 100644 --- a/packages/vertexai/src/types/requests.ts +++ b/packages/vertexai/src/types/requests.ts @@ -79,9 +79,8 @@ export interface GenerationConfig { frequencyPenalty?: number; /** * Output response mimetype of the generated candidate text. - * Supported mimetypes: - * - `text/plain`: (default) Text output. - * - `application/json`: JSON response in the candidates. + * Supported mimetypes are `text/plain` (default, text output) and `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. From 5fd5527e938907392afef14a37eaafef626cd949 Mon Sep 17 00:00:00 2001 From: Daniel La Rocque Date: Thu, 30 May 2024 09:58:20 -0400 Subject: [PATCH 4/4] remove changeset --- .changeset/unlucky-radios-invent.md | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 .changeset/unlucky-radios-invent.md diff --git a/.changeset/unlucky-radios-invent.md b/.changeset/unlucky-radios-invent.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/unlucky-radios-invent.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ----