Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "6.2.0"
".": "6.3.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 135
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-d64cf80d2ebddf175c5578f68226a3d5bbd3f7fd8d62ccac2205f3fc05a355ee.yml
openapi_spec_hash: d51e0d60d0c536f210b597a211bc5af0
config_hash: e7c42016df9c6bd7bd6ff15101b9bc9b
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-e66e85fb7f72477256dca1acb6b23396989d381c5c1b318de564195436bcb93f.yml
openapi_spec_hash: 0a4bbb5aa0ae532a072bd6b3854e70b1
config_hash: 89bf7bb3a1f9439ffc6ea0e7dc57ba9b
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 6.3.0 (2025-10-10)

Full Changelog: [v6.2.0...v6.3.0](https://github.com/openai/openai-node/compare/v6.2.0...v6.3.0)

### Features

* **api:** comparison filter in/not in ([1a733c6](https://github.com/openai/openai-node/commit/1a733c69ffff094568707b3f615d110c7e2edd6e))


### Chores

* **internal:** use npm pack for build uploads ([a532410](https://github.com/openai/openai-node/commit/a53241032e1177a390337986399da57e39be25ec))

## 6.2.0 (2025-10-06)

Full Changelog: [v6.1.0...v6.2.0](https://github.com/openai/openai-node/compare/v6.1.0...v6.2.0)
Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openai/openai",
"version": "6.2.0",
"version": "6.3.0",
"exports": {
".": "./index.ts",
"./helpers/zod": "./helpers/zod.ts",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openai",
"version": "6.2.0",
"version": "6.3.0",
"description": "The official TypeScript library for the OpenAI API",
"author": "OpenAI <support@openai.com>",
"types": "dist/index.d.ts",
Expand Down
6 changes: 4 additions & 2 deletions scripts/utils/upload-artifact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ if [[ "$SIGNED_URL" == "null" ]]; then
exit 1
fi

UPLOAD_RESPONSE=$(tar "${BASE_PATH:+-C$BASE_PATH}" -cz "${ARTIFACT_PATH:-dist}" | curl -v -X PUT \
TARBALL=$(cd dist && npm pack --silent)

UPLOAD_RESPONSE=$(curl -v -X PUT \
-H "Content-Type: application/gzip" \
--data-binary @- "$SIGNED_URL" 2>&1)
--data-binary "@dist/$TARBALL" "$SIGNED_URL" 2>&1)

if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then
echo -e "\033[32mUploaded build to Stainless storage.\033[0m"
Expand Down
6 changes: 6 additions & 0 deletions src/resources/beta/assistants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1163,6 +1163,9 @@ export interface AssistantCreateParams {
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
* effort can result in faster responses and fewer tokens used on reasoning in a
* response.
*
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
* effort.
*/
reasoning_effort?: Shared.ReasoningEffort | null;

Expand Down Expand Up @@ -1416,6 +1419,9 @@ export interface AssistantUpdateParams {
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
* effort can result in faster responses and fewer tokens used on reasoning in a
* response.
*
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
* effort.
*/
reasoning_effort?: Shared.ReasoningEffort | null;

Expand Down
3 changes: 3 additions & 0 deletions src/resources/beta/threads/runs/runs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,9 @@ export interface RunCreateParamsBase {
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
* effort can result in faster responses and fewer tokens used on reasoning in a
* response.
*
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
* effort.
*/
reasoning_effort?: Shared.ReasoningEffort | null;

Expand Down
3 changes: 3 additions & 0 deletions src/resources/chat/completions/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1644,6 +1644,9 @@ export interface ChatCompletionCreateParamsBase {
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
* effort can result in faster responses and fewer tokens used on reasoning in a
* response.
*
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
* effort.
*/
reasoning_effort?: Shared.ReasoningEffort | null;

Expand Down
33 changes: 33 additions & 0 deletions src/resources/evals/runs/runs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,9 @@ export namespace CreateEvalCompletionsRunDataSource {
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
* effort can result in faster responses and fewer tokens used on reasoning in a
* response.
*
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
* effort.
*/
reasoning_effort?: Shared.ReasoningEffort | null;

Expand Down Expand Up @@ -592,6 +595,9 @@ export namespace RunCreateResponse {
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
* effort can result in faster responses and fewer tokens used on reasoning in a
* response.
*
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
* effort.
*/
reasoning_effort?: Shared.ReasoningEffort | null;

Expand Down Expand Up @@ -736,6 +742,9 @@ export namespace RunCreateResponse {
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
* effort can result in faster responses and fewer tokens used on reasoning in a
* response.
*
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
* effort.
*/
reasoning_effort?: Shared.ReasoningEffort | null;

Expand Down Expand Up @@ -1078,6 +1087,9 @@ export namespace RunRetrieveResponse {
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
* effort can result in faster responses and fewer tokens used on reasoning in a
* response.
*
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
* effort.
*/
reasoning_effort?: Shared.ReasoningEffort | null;

Expand Down Expand Up @@ -1222,6 +1234,9 @@ export namespace RunRetrieveResponse {
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
* effort can result in faster responses and fewer tokens used on reasoning in a
* response.
*
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
* effort.
*/
reasoning_effort?: Shared.ReasoningEffort | null;

Expand Down Expand Up @@ -1561,6 +1576,9 @@ export namespace RunListResponse {
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
* effort can result in faster responses and fewer tokens used on reasoning in a
* response.
*
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
* effort.
*/
reasoning_effort?: Shared.ReasoningEffort | null;

Expand Down Expand Up @@ -1705,6 +1723,9 @@ export namespace RunListResponse {
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
* effort can result in faster responses and fewer tokens used on reasoning in a
* response.
*
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
* effort.
*/
reasoning_effort?: Shared.ReasoningEffort | null;

Expand Down Expand Up @@ -2055,6 +2076,9 @@ export namespace RunCancelResponse {
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
* effort can result in faster responses and fewer tokens used on reasoning in a
* response.
*
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
* effort.
*/
reasoning_effort?: Shared.ReasoningEffort | null;

Expand Down Expand Up @@ -2199,6 +2223,9 @@ export namespace RunCancelResponse {
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
* effort can result in faster responses and fewer tokens used on reasoning in a
* response.
*
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
* effort.
*/
reasoning_effort?: Shared.ReasoningEffort | null;

Expand Down Expand Up @@ -2488,6 +2515,9 @@ export namespace RunCreateParams {
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
* effort can result in faster responses and fewer tokens used on reasoning in a
* response.
*
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
* effort.
*/
reasoning_effort?: Shared.ReasoningEffort | null;

Expand Down Expand Up @@ -2632,6 +2662,9 @@ export namespace RunCreateParams {
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
* effort can result in faster responses and fewer tokens used on reasoning in a
* response.
*
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
* effort.
*/
reasoning_effort?: Shared.ReasoningEffort | null;

Expand Down
2 changes: 1 addition & 1 deletion src/resources/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class Files extends APIResource {
}

/**
* Delete a file.
* Delete a file and remove it from all vector stores.
*/
delete(fileID: string, options?: RequestOptions): APIPromise<FileDeleted> {
return this._client.delete(path`/files/${fileID}`, options);
Expand Down
3 changes: 3 additions & 0 deletions src/resources/graders/grader-models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ export namespace ScoreModelGrader {
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
* effort can result in faster responses and fewer tokens used on reasoning in a
* response.
*
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
* effort.
*/
reasoning_effort?: Shared.ReasoningEffort | null;

Expand Down
13 changes: 11 additions & 2 deletions src/resources/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,22 +92,25 @@ export interface ComparisonFilter {
key: string;

/**
* Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.
* Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `in`,
* `nin`.
*
* - `eq`: equals
* - `ne`: not equal
* - `gt`: greater than
* - `gte`: greater than or equal
* - `lt`: less than
* - `lte`: less than or equal
* - `in`: in
* - `nin`: not in
*/
type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte';

/**
* The value to compare against the attribute key; supports string, number, or
* boolean types.
*/
value: string | number | boolean;
value: string | number | boolean | Array<string | number>;
}

/**
Expand Down Expand Up @@ -241,6 +244,9 @@ export interface Reasoning {
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
* effort can result in faster responses and fewer tokens used on reasoning in a
* response.
*
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
* effort.
*/
effort?: ReasoningEffort | null;

Expand All @@ -267,6 +273,9 @@ export interface Reasoning {
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
* effort can result in faster responses and fewer tokens used on reasoning in a
* response.
*
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
* effort.
*/
export type ReasoningEffort = 'minimal' | 'low' | 'medium' | 'high' | null;

Expand Down
2 changes: 1 addition & 1 deletion src/resources/vector-stores/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export namespace VectorStoreFile {
*/
export interface LastError {
/**
* One of `server_error` or `rate_limit_exceeded`.
* One of `server_error`, `unsupported_file`, or `invalid_file`.
*/
code: 'server_error' | 'unsupported_file' | 'invalid_file';

Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '6.2.0'; // x-release-please-version
export const VERSION = '6.3.0'; // x-release-please-version