Skip to content

Commit 40a403c

Browse files
fix(api): fix nullability of logprobs
Makes ResponseOutputText.logprobs nullable, matching with 2.6.1. While this is always present in the server response, this inadvertently affected params and some constructors
1 parent d1c87a3 commit 40a403c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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: 135
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-3c5d1593d7c6f2b38a7d78d7906041465ee9d6e9022f0651e1da194654488108.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-eeba8addf3a5f412e5ce8d22031e60c61650cee3f5d9e587a2533f6818a249ea.yml
33
openapi_spec_hash: 0a4d8ad2469823ce24a3fd94f23f1c2b
4-
config_hash: 032995825500a503a76da119f5354905
4+
config_hash: 0bb1941a78ece0b610a2fbba7d74a84c

src/resources/responses/responses.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3870,8 +3870,6 @@ export interface ResponseOutputText {
38703870
| ResponseOutputText.FilePath
38713871
>;
38723872

3873-
logprobs: Array<ResponseOutputText.Logprob>;
3874-
38753873
/**
38763874
* The text output from the model.
38773875
*/
@@ -3881,6 +3879,8 @@ export interface ResponseOutputText {
38813879
* The type of the output text. Always `output_text`.
38823880
*/
38833881
type: 'output_text';
3882+
3883+
logprobs?: Array<ResponseOutputText.Logprob>;
38843884
}
38853885

38863886
export namespace ResponseOutputText {

0 commit comments

Comments
 (0)