diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e1e352c16..5c753b441 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "6.2.0" + ".": "6.3.0" } diff --git a/.stats.yml b/.stats.yml index f7aa916fc..e68631a07 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 4037b61cd..8e057855f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/jsr.json b/jsr.json index d341a779f..e23f193a5 100644 --- a/jsr.json +++ b/jsr.json @@ -1,6 +1,6 @@ { "name": "@openai/openai", - "version": "6.2.0", + "version": "6.3.0", "exports": { ".": "./index.ts", "./helpers/zod": "./helpers/zod.ts", diff --git a/package.json b/package.json index fdfd35192..da7ad39b5 100644 --- a/package.json +++ b/package.json @@ -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 ", "types": "dist/index.d.ts", diff --git a/scripts/utils/upload-artifact.sh b/scripts/utils/upload-artifact.sh index 1ef9d0dfd..58f7a8468 100755 --- a/scripts/utils/upload-artifact.sh +++ b/scripts/utils/upload-artifact.sh @@ -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" diff --git a/src/resources/beta/assistants.ts b/src/resources/beta/assistants.ts index 14ec22e4d..eff0a66f8 100644 --- a/src/resources/beta/assistants.ts +++ b/src/resources/beta/assistants.ts @@ -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; @@ -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; diff --git a/src/resources/beta/threads/runs/runs.ts b/src/resources/beta/threads/runs/runs.ts index 2b0ef987b..91eaa4fa9 100644 --- a/src/resources/beta/threads/runs/runs.ts +++ b/src/resources/beta/threads/runs/runs.ts @@ -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; diff --git a/src/resources/chat/completions/completions.ts b/src/resources/chat/completions/completions.ts index 4c97fb921..935bc0849 100644 --- a/src/resources/chat/completions/completions.ts +++ b/src/resources/chat/completions/completions.ts @@ -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; diff --git a/src/resources/evals/runs/runs.ts b/src/resources/evals/runs/runs.ts index ecb990c44..f26a162f9 100644 --- a/src/resources/evals/runs/runs.ts +++ b/src/resources/evals/runs/runs.ts @@ -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; @@ -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; @@ -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; @@ -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; @@ -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; @@ -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; @@ -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; @@ -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; @@ -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; @@ -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; @@ -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; diff --git a/src/resources/files.ts b/src/resources/files.ts index ef6873221..4b21f998d 100644 --- a/src/resources/files.ts +++ b/src/resources/files.ts @@ -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 { return this._client.delete(path`/files/${fileID}`, options); diff --git a/src/resources/graders/grader-models.ts b/src/resources/graders/grader-models.ts index 0dee926f1..e374a084a 100644 --- a/src/resources/graders/grader-models.ts +++ b/src/resources/graders/grader-models.ts @@ -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; diff --git a/src/resources/shared.ts b/src/resources/shared.ts index 8a2e0cb63..59bc655db 100644 --- a/src/resources/shared.ts +++ b/src/resources/shared.ts @@ -92,7 +92,8 @@ 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 @@ -100,6 +101,8 @@ export interface ComparisonFilter { * - `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'; @@ -107,7 +110,7 @@ export interface ComparisonFilter { * The value to compare against the attribute key; supports string, number, or * boolean types. */ - value: string | number | boolean; + value: string | number | boolean | Array; } /** @@ -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; @@ -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; diff --git a/src/resources/vector-stores/files.ts b/src/resources/vector-stores/files.ts index d0cad22c4..91ceae1b3 100644 --- a/src/resources/vector-stores/files.ts +++ b/src/resources/vector-stores/files.ts @@ -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'; diff --git a/src/version.ts b/src/version.ts index 04d2e6437..e33d7ab0f 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '6.2.0'; // x-release-please-version +export const VERSION = '6.3.0'; // x-release-please-version