diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 8e67d2540..b85605b81 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "6.4.0"
+ ".": "6.5.0"
}
diff --git a/.stats.yml b/.stats.yml
index 09d2eb1de..3a558a911 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-104cced8f4c7436a76eea02e26307828166405ccfb296faffb008b72772c11a7.yml
-openapi_spec_hash: fdc03ed84a65a31b80da909255e53924
-config_hash: 03b48e9b8c7231a902403210dbd7dfa0
+configured_endpoints: 134
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-f59befea071ed7729cbb7bce219e7f837eccfdb57e01698514e6a0bd6052ff60.yml
+openapi_spec_hash: 49da48619d37932b2e257c532078b2bb
+config_hash: 1af83449a09a3b4f276444dbcdd3eb67
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d5e2b756c..963aaa2c0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 6.5.0 (2025-10-17)
+
+Full Changelog: [v6.4.0...v6.5.0](https://github.com/openai/openai-node/compare/v6.4.0...v6.5.0)
+
+### Features
+
+* **api:** api update ([4d21af3](https://github.com/openai/openai-node/commit/4d21af3e6a04baa0ea42d360cf3601fcc3d39705))
+
## 6.4.0 (2025-10-16)
Full Changelog: [v6.3.0...v6.4.0](https://github.com/openai/openai-node/compare/v6.3.0...v6.4.0)
diff --git a/api.md b/api.md
index 4f01df498..0a8e65de8 100644
--- a/api.md
+++ b/api.md
@@ -477,13 +477,6 @@ Methods:
Types:
- ChatKitWorkflow
-- FilePart
-- ImagePart
-- ChatKitUploadFileResponse
-
-Methods:
-
-- client.beta.chatkit.uploadFile({ ...params }) -> ChatKitUploadFileResponse
### Sessions
diff --git a/jsr.json b/jsr.json
index 0f22fd072..330d3d80c 100644
--- a/jsr.json
+++ b/jsr.json
@@ -1,6 +1,6 @@
{
"name": "@openai/openai",
- "version": "6.4.0",
+ "version": "6.5.0",
"exports": {
".": "./index.ts",
"./helpers/zod": "./helpers/zod.ts",
diff --git a/package.json b/package.json
index 7c9108122..e9ef2556a 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "openai",
- "version": "6.4.0",
+ "version": "6.5.0",
"description": "The official TypeScript library for the OpenAI API",
"author": "OpenAI ",
"types": "dist/index.d.ts",
diff --git a/src/resources/beta/beta.ts b/src/resources/beta/beta.ts
index f732fcbe5..7bbca11a6 100644
--- a/src/resources/beta/beta.ts
+++ b/src/resources/beta/beta.ts
@@ -74,14 +74,7 @@ import {
TranscriptionSessionUpdatedEvent,
} from './realtime/realtime';
import * as ChatKitAPI from './chatkit/chatkit';
-import {
- ChatKit,
- ChatKitUploadFileParams,
- ChatKitUploadFileResponse,
- ChatKitWorkflow,
- FilePart,
- ImagePart,
-} from './chatkit/chatkit';
+import { ChatKit, ChatKitWorkflow } from './chatkit/chatkit';
import * as ThreadsAPI from './threads/threads';
import {
AssistantResponseFormatOption,
@@ -166,10 +159,6 @@ export declare namespace Beta {
type TranscriptionSessionUpdatedEvent as TranscriptionSessionUpdatedEvent,
ChatKit as ChatKit,
type ChatKitWorkflow as ChatKitWorkflow,
- type FilePart as FilePart,
- type ImagePart as ImagePart,
- type ChatKitUploadFileResponse as ChatKitUploadFileResponse,
- type ChatKitUploadFileParams as ChatKitUploadFileParams,
};
export {
diff --git a/src/resources/beta/chatkit/chatkit.ts b/src/resources/beta/chatkit/chatkit.ts
index 49e271369..960ce7ea4 100644
--- a/src/resources/beta/chatkit/chatkit.ts
+++ b/src/resources/beta/chatkit/chatkit.ts
@@ -30,35 +30,10 @@ import {
ThreadListParams,
Threads,
} from './threads';
-import { APIPromise } from '../../../core/api-promise';
-import { type Uploadable } from '../../../core/uploads';
-import { buildHeaders } from '../../../internal/headers';
-import { RequestOptions } from '../../../internal/request-options';
-import { maybeMultipartFormRequestOptions } from '../../../internal/uploads';
export class ChatKit extends APIResource {
sessions: SessionsAPI.Sessions = new SessionsAPI.Sessions(this._client);
threads: ThreadsAPI.Threads = new ThreadsAPI.Threads(this._client);
-
- /**
- * Upload a ChatKit file
- *
- * @example
- * ```ts
- * const response = await client.beta.chatkit.uploadFile({
- * file: fs.createReadStream('path/to/file'),
- * });
- * ```
- */
- uploadFile(body: ChatKitUploadFileParams, options?: RequestOptions): APIPromise {
- return this._client.post(
- '/chatkit/files',
- maybeMultipartFormRequestOptions(
- { body, ...options, headers: buildHeaders([{ 'OpenAI-Beta': 'chatkit_beta=v1' }, options?.headers]) },
- this._client,
- ),
- );
- }
}
/**
@@ -100,97 +75,11 @@ export namespace ChatKitWorkflow {
}
}
-/**
- * Metadata for a non-image file uploaded through ChatKit.
- */
-export interface FilePart {
- /**
- * Unique identifier for the uploaded file.
- */
- id: string;
-
- /**
- * MIME type reported for the uploaded file. Defaults to null when unknown.
- */
- mime_type: string | null;
-
- /**
- * Original filename supplied by the uploader. Defaults to null when unnamed.
- */
- name: string | null;
-
- /**
- * Type discriminator that is always `file`.
- */
- type: 'file';
-
- /**
- * Signed URL for downloading the uploaded file. Defaults to null when no download
- * link is available.
- */
- upload_url: string | null;
-}
-
-/**
- * Metadata for an image uploaded through ChatKit.
- */
-export interface ImagePart {
- /**
- * Unique identifier for the uploaded image.
- */
- id: string;
-
- /**
- * MIME type of the uploaded image.
- */
- mime_type: string;
-
- /**
- * Original filename for the uploaded image. Defaults to null when unnamed.
- */
- name: string | null;
-
- /**
- * Preview URL that can be rendered inline for the image.
- */
- preview_url: string;
-
- /**
- * Type discriminator that is always `image`.
- */
- type: 'image';
-
- /**
- * Signed URL for downloading the uploaded image. Defaults to null when no download
- * link is available.
- */
- upload_url: string | null;
-}
-
-/**
- * Represents either a file or image attachment.
- */
-export type ChatKitUploadFileResponse = FilePart | ImagePart;
-
-export interface ChatKitUploadFileParams {
- /**
- * Binary file contents to store with the ChatKit session. Supports PDFs and PNG,
- * JPG, JPEG, GIF, or WEBP images.
- */
- file: Uploadable;
-}
-
ChatKit.Sessions = Sessions;
ChatKit.Threads = Threads;
export declare namespace ChatKit {
- export {
- type ChatKitWorkflow as ChatKitWorkflow,
- type FilePart as FilePart,
- type ImagePart as ImagePart,
- type ChatKitUploadFileResponse as ChatKitUploadFileResponse,
- type ChatKitUploadFileParams as ChatKitUploadFileParams,
- };
+ export { type ChatKitWorkflow as ChatKitWorkflow };
export { Sessions as Sessions, type SessionCreateParams as SessionCreateParams };
diff --git a/src/resources/beta/chatkit/index.ts b/src/resources/beta/chatkit/index.ts
index 30d1533f7..255238127 100644
--- a/src/resources/beta/chatkit/index.ts
+++ b/src/resources/beta/chatkit/index.ts
@@ -1,13 +1,6 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-export {
- ChatKit,
- type ChatKitWorkflow,
- type FilePart,
- type ImagePart,
- type ChatKitUploadFileResponse,
- type ChatKitUploadFileParams,
-} from './chatkit';
+export { ChatKit, type ChatKitWorkflow } from './chatkit';
export { Sessions, type SessionCreateParams } from './sessions';
export {
Threads,
diff --git a/src/resources/beta/index.ts b/src/resources/beta/index.ts
index 2dda802e6..f42fb8f72 100644
--- a/src/resources/beta/index.ts
+++ b/src/resources/beta/index.ts
@@ -20,14 +20,7 @@ export {
} from './assistants';
export { Beta } from './beta';
export { Realtime } from './realtime/index';
-export {
- ChatKit,
- type ChatKitWorkflow,
- type FilePart,
- type ImagePart,
- type ChatKitUploadFileResponse,
- type ChatKitUploadFileParams,
-} from './chatkit/index';
+export { ChatKit, type ChatKitWorkflow } from './chatkit/index';
export {
Threads,
type AssistantResponseFormatOption,
diff --git a/src/version.ts b/src/version.ts
index 200bf6322..d69c3fa30 100644
--- a/src/version.ts
+++ b/src/version.ts
@@ -1 +1 @@
-export const VERSION = '6.4.0'; // x-release-please-version
+export const VERSION = '6.5.0'; // x-release-please-version
diff --git a/tests/api-resources/beta/chatkit/chatkit.test.ts b/tests/api-resources/beta/chatkit/chatkit.test.ts
deleted file mode 100644
index a0297a104..000000000
--- a/tests/api-resources/beta/chatkit/chatkit.test.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-import OpenAI, { toFile } from 'openai';
-
-const client = new OpenAI({
- apiKey: 'My API Key',
- baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010',
-});
-
-describe('resource chatkit', () => {
- test('uploadFile: only required params', async () => {
- const responsePromise = client.beta.chatkit.uploadFile({
- file: await toFile(Buffer.from('# my file contents'), 'README.md'),
- });
- const rawResponse = await responsePromise.asResponse();
- expect(rawResponse).toBeInstanceOf(Response);
- const response = await responsePromise;
- expect(response).not.toBeInstanceOf(Response);
- const dataAndResponse = await responsePromise.withResponse();
- expect(dataAndResponse.data).toBe(response);
- expect(dataAndResponse.response).toBe(rawResponse);
- });
-
- test('uploadFile: required and optional params', async () => {
- const response = await client.beta.chatkit.uploadFile({
- file: await toFile(Buffer.from('# my file contents'), 'README.md'),
- });
- });
-});