Skip to content

Commit 81b19fb

Browse files
fix(client): fix verbosity parameter location in Responses
fixes error with unsupported `verbosity` parameter by correctly placing it inside the `text` parameter
1 parent df6ab1b commit 81b19fb

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

.stats.yml

Lines changed: 2 additions & 2 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-56d3a72a5caa187aebcf9de169a6a28a9dc3f70a79d7467a03a9e22595936066.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-6a1bfd4738fff02ef5becc3fdb2bf0cd6c026f2c924d4147a2a515474477dd9a.yml
33
openapi_spec_hash: 3eb8d86c06f0bb5e1190983e5acfc9ba
4-
config_hash: 7e18239879286d68a48ac5487a649aa6
4+
config_hash: a67c5e195a59855fe8a5db0dc61a3e7f

src/resources/responses/responses.ts

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -599,13 +599,6 @@ export interface Response {
599599
* [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
600600
*/
601601
user?: string;
602-
603-
/**
604-
* Constrains the verbosity of the model's response. Lower values will result in
605-
* more concise responses, while higher values will result in more verbose
606-
* responses. Currently supported values are `low`, `medium`, and `high`.
607-
*/
608-
verbosity?: 'low' | 'medium' | 'high' | null;
609602
}
610603

611604
export namespace Response {
@@ -4305,6 +4298,13 @@ export interface ResponseTextConfig {
43054298
* preferred for models that support it.
43064299
*/
43074300
format?: ResponseFormatTextConfig;
4301+
4302+
/**
4303+
* Constrains the verbosity of the model's response. Lower values will result in
4304+
* more concise responses, while higher values will result in more verbose
4305+
* responses. Currently supported values are `low`, `medium`, and `high`.
4306+
*/
4307+
verbosity?: 'low' | 'medium' | 'high' | null;
43084308
}
43094309

43104310
/**
@@ -5248,13 +5248,6 @@ export interface ResponseCreateParamsBase {
52485248
* [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
52495249
*/
52505250
user?: string;
5251-
5252-
/**
5253-
* Constrains the verbosity of the model's response. Lower values will result in
5254-
* more concise responses, while higher values will result in more verbose
5255-
* responses. Currently supported values are `low`, `medium`, and `high`.
5256-
*/
5257-
verbosity?: 'low' | 'medium' | 'high' | null;
52585251
}
52595252

52605253
export namespace ResponseCreateParams {

0 commit comments

Comments
 (0)