Skip to content

Commit 5a1325c

Browse files
Merge pull request #1616 from openai/release-please--branches--master--changes--next--components--openai
release: 5.13.1
2 parents 1ce1409 + b168cad commit 5a1325c

File tree

10 files changed

+35
-76
lines changed

10 files changed

+35
-76
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "5.13.0"
2+
".": "5.13.1"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 111
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-24be531010b354303d741fc9247c1f84f75978f9f7de68aca92cb4f240a04722.yml
3-
openapi_spec_hash: 3e46f439f6a863beadc71577eb4efa15
4-
config_hash: ed87b9139ac595a04a2162d754df2fed
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-7ef7a457c3bf05364e66e48c9ca34f31bfef1f6c9b7c15b1812346105e0abb16.yml
3+
openapi_spec_hash: a2b1f5d8fbb62175c93b0ebea9f10063
4+
config_hash: 76afa3236f36854a8705f1281b1990b8

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 5.13.1 (2025-08-19)
4+
5+
Full Changelog: [v5.13.0...v5.13.1](https://github.com/openai/openai-node/compare/v5.13.0...v5.13.1)
6+
7+
### Chores
8+
9+
* **api:** accurately represent shape for verbosity on Chat Completions ([5ddac3c](https://github.com/openai/openai-node/commit/5ddac3c7535e2df4b562fe1237b639e112bf5eef))
10+
311
## 5.13.0 (2025-08-18)
412

513
Full Changelog: [v5.12.3...v5.13.0](https://github.com/openai/openai-node/compare/v5.12.3...v5.13.0)

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openai/openai",
3-
"version": "5.13.0",
3+
"version": "5.13.1",
44
"exports": {
55
".": "./index.ts",
66
"./helpers/zod": "./helpers/zod.ts",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openai",
3-
"version": "5.13.0",
3+
"version": "5.13.1",
44
"description": "The official TypeScript library for the OpenAI API",
55
"author": "OpenAI <support@openai.com>",
66
"types": "dist/index.d.ts",

src/resources/chat/completions/completions.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1704,7 +1704,7 @@ export interface ChatCompletionCreateParamsBase {
17041704
* our [model distillation](https://platform.openai.com/docs/guides/distillation)
17051705
* or [evals](https://platform.openai.com/docs/guides/evals) products.
17061706
*
1707-
* Supports text and image inputs. Note: image inputs over 10MB will be dropped.
1707+
* Supports text and image inputs. Note: image inputs over 8MB will be dropped.
17081708
*/
17091709
store?: boolean | null;
17101710

@@ -1733,8 +1733,6 @@ export interface ChatCompletionCreateParamsBase {
17331733
*/
17341734
temperature?: number | null;
17351735

1736-
text?: ChatCompletionCreateParams.Text;
1737-
17381736
/**
17391737
* Controls which (if any) tool is called by the model. `none` means the model will
17401738
* not call any tool and instead generates a message. `auto` means the model can
@@ -1825,15 +1823,6 @@ export namespace ChatCompletionCreateParams {
18251823
parameters?: Shared.FunctionParameters;
18261824
}
18271825

1828-
export interface Text {
1829-
/**
1830-
* Constrains the verbosity of the model's response. Lower values will result in
1831-
* more concise responses, while higher values will result in more verbose
1832-
* responses. Currently supported values are `low`, `medium`, and `high`.
1833-
*/
1834-
verbosity?: 'low' | 'medium' | 'high' | null;
1835-
}
1836-
18371826
/**
18381827
* This tool searches the web for relevant results to use in a response. Learn more
18391828
* about the

src/resources/graders/grader-models.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,11 @@ export interface StringCheckGrader {
291291
*/
292292
export interface TextSimilarityGrader {
293293
/**
294-
* The evaluation metric to use. One of `fuzzy_match`, `bleu`, `gleu`, `meteor`,
295-
* `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, or `rouge_l`.
294+
* The evaluation metric to use. One of `cosine`, `fuzzy_match`, `bleu`, `gleu`,
295+
* `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, or `rouge_l`.
296296
*/
297297
evaluation_metric:
298+
| 'cosine'
298299
| 'fuzzy_match'
299300
| 'bleu'
300301
| 'gleu'

src/resources/responses/responses.ts

Lines changed: 16 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,14 @@ export interface Response {
563563
*/
564564
status?: ResponseStatus;
565565

566-
text?: Response.Text;
566+
/**
567+
* Configuration options for a text response from the model. Can be plain text or
568+
* structured JSON data. Learn more:
569+
*
570+
* - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
571+
* - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
572+
*/
573+
text?: ResponseTextConfig;
567574

568575
/**
569576
* The truncation strategy to use for the model response.
@@ -603,32 +610,6 @@ export namespace Response {
603610
*/
604611
reason?: 'max_output_tokens' | 'content_filter';
605612
}
606-
607-
export interface Text {
608-
/**
609-
* An object specifying the format that the model must output.
610-
*
611-
* Configuring `{ "type": "json_schema" }` enables Structured Outputs, which
612-
* ensures the model will match your supplied JSON schema. Learn more in the
613-
* [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
614-
*
615-
* The default format is `{ "type": "text" }` with no additional options.
616-
*
617-
* **Not recommended for gpt-4o and newer models:**
618-
*
619-
* Setting to `{ "type": "json_object" }` enables the older JSON mode, which
620-
* ensures the message the model generates is valid JSON. Using `json_schema` is
621-
* preferred for models that support it.
622-
*/
623-
format?: ResponsesAPI.ResponseFormatTextConfig;
624-
625-
/**
626-
* Constrains the verbosity of the model's response. Lower values will result in
627-
* more concise responses, while higher values will result in more verbose
628-
* responses. Currently supported values are `low`, `medium`, and `high`.
629-
*/
630-
verbosity?: 'low' | 'medium' | 'high' | null;
631-
}
632613
}
633614

634615
/**
@@ -5194,7 +5175,14 @@ export interface ResponseCreateParamsBase {
51945175
*/
51955176
temperature?: number | null;
51965177

5197-
text?: ResponseCreateParams.Text;
5178+
/**
5179+
* Configuration options for a text response from the model. Can be plain text or
5180+
* structured JSON data. Learn more:
5181+
*
5182+
* - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
5183+
* - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
5184+
*/
5185+
text?: ResponseTextConfig;
51985186

51995187
/**
52005188
* How the model should select which tool (or tools) to use when generating a
@@ -5276,32 +5264,6 @@ export namespace ResponseCreateParams {
52765264
include_obfuscation?: boolean;
52775265
}
52785266

5279-
export interface Text {
5280-
/**
5281-
* An object specifying the format that the model must output.
5282-
*
5283-
* Configuring `{ "type": "json_schema" }` enables Structured Outputs, which
5284-
* ensures the model will match your supplied JSON schema. Learn more in the
5285-
* [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
5286-
*
5287-
* The default format is `{ "type": "text" }` with no additional options.
5288-
*
5289-
* **Not recommended for gpt-4o and newer models:**
5290-
*
5291-
* Setting to `{ "type": "json_object" }` enables the older JSON mode, which
5292-
* ensures the message the model generates is valid JSON. Using `json_schema` is
5293-
* preferred for models that support it.
5294-
*/
5295-
format?: ResponsesAPI.ResponseFormatTextConfig;
5296-
5297-
/**
5298-
* Constrains the verbosity of the model's response. Lower values will result in
5299-
* more concise responses, while higher values will result in more verbose
5300-
* responses. Currently supported values are `low`, `medium`, and `high`.
5301-
*/
5302-
verbosity?: 'low' | 'medium' | 'high' | null;
5303-
}
5304-
53055267
export type ResponseCreateParamsNonStreaming = ResponsesAPI.ResponseCreateParamsNonStreaming;
53065268
export type ResponseCreateParamsStreaming = ResponsesAPI.ResponseCreateParamsStreaming;
53075269
}

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '5.13.0'; // x-release-please-version
1+
export const VERSION = '5.13.1'; // x-release-please-version

tests/api-resources/chat/completions/completions.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ describe('resource completions', () => {
5151
stream: false,
5252
stream_options: { include_obfuscation: true, include_usage: true },
5353
temperature: 1,
54-
text: { verbosity: 'low' },
5554
tool_choice: 'none',
5655
tools: [
5756
{

0 commit comments

Comments
 (0)