Compare Versions - openai
7.8.0 (2026-08-27)
Features
- api: add compute_units to Responses and Chat Completions usage (#2505) (f9b1313)
- api: add default WebSocket User-Agent and audit log events (#2504) (9b2f089)
Bug Fixes
- auth: clamp the workload-identity refresh buffer to the token lifetime (#2490) (76b73a9)
- auth: secure first-class X.509 workload credentials (#2479) (1b36c19)
- deps: harden dependency and release boundaries (#2484) (b21ff45)
- events: settle WebSocket waiters when listeners throw (#2491) (b5a13a7)
- restore native browser ESM imports (#2495) (c8cab1e)
- uploads: detect multipart bodies from own properties only (#2492) (559ffc8)
7.6.0 (2026-08-26)
Features
- api: Add obfuscation field to ChatCompletionChunk (#2423) (39afa3a)
- api: Add project residency and usage quantity_unit fields (#2461) (26d8158)
- api: support backend-mediated Realtime WebRTC calls (#2469) (0d12ca8)
- auth: add pinned X.509 workload token exchange (#2470) (9dd8648)
- auth: attest cross-module X.509 transport capabilities (#2471) (c6769fa)
- auth: harden X.509 token lifecycle and tenant isolation (#2473) (6992683)
- auth: integrate attested X.509 workload identity into clients (#2472) (ee5229b)
- support named data-residency endpoints (#2393) (62d98dd)
Bug Fixes
- [responses] Avoid quadratic comparisons when accumulating long text (#2434) (95628ce)
- assistants: reject run-step identity hijacking before tool callbacks (#2476) (63b1c75)
- audio: preserve recording outcomes during cancellation and cleanup (#2482) (dafcac4)
- auth: honor an explicit zero GCP metadata timeout (#2481) (7a9dec8)
- auth: sanitize malformed Azure IMDS token responses (#2427) (bbfb792)
- auth: sanitize malformed workload OAuth token responses (#2468) (cd5b2d8)
- avoid double-counting logprobs in streamed chat completions (#2444) (ddf9922)
- bedrock: honor cancellation during bearer credential resolution (#2478) (2dac2f4)
- drain tee stream queues in linear time (#2379) (1f3ce07)
- polling: honor cancellation during polling delays (#2477) (520d604)
- preserve large streaming responses (#2433) (4e588c2)
- preserve multipart upload array order (#2380) (f1a2b61)
- publish Castiron checks for behind-main pull requests (#2486) (662bb37)
- publish Castiron checks for external-fork pull requests (#2464) (a90581e)
- security: abort streaming examples when clients disconnect (#2426) (b32a25b)
- security: authenticate Cloudflare tests and restrict streaming proxies (#2413) (9286fdb)
- security: authenticate Vercel ecosystem APIs and clean up uploaded files (#2412) (d58608a)
- security: bound SDK event streams and validate streamed item identities (#2415) (7df29a9)
- security: bound SSE frames and NDJSON lines before buffering (#2411) (0e250a4)
- security: close rejected Azure managed-identity response streams (#2416) (387bbc8)
- security: harden Bedrock regions, query merges, and upload errors (#2410) (ce45d0d)
- security: harden Realtime WebSocket origins, worker guards, and Azure credentials (#2414) (5533f73)
- security: preserve chat structured response-format integrity (#2402) (e69df93)
- security: prevent AssistantStream deltas leaking sensitive data (#2392) (17cf54c)
- security: prevent streaming upload filename path disclosure (#2386) (c88a024)
- security: prevent structured-output format downgrade (#2394) (dd945e6)
- security: redact built-in structured JSON parse errors (#2418) (a0d68cc)
- security: redact chat completion finalization snapshots (#2400) (fb5d8e7)
- security: redact GCP metadata authentication error bodies (#2399) (322840c)
- security: redact invalid Bedrock bearer credentials (#2419) (39c06d1)
- security: redact invalid workload identity access tokens (#2425) (0d28da3)
- security: redact malformed NDJSON stream diagnostics (#2420) (dcc705c)
- security: redact malformed Realtime WebSocket error causes (#2408) (e7a1a44)
- security: redact malformed SSE diagnostic payloads (#2403) (272a2cc)
- security: redact sensitive assistant delta diagnostics (#2406) (b130b83)
- security: redact unsupported Responses stream event payloads (#2395) (32b2953)
- security: reject malformed Realtime WebSocket event frames (#2391) (e6e11b0)
- security: require an exact SSE completion sentinel (#2422) (a905bfb)
- security: require OIDC for npm publishing (#2404) (342764b)
- security: respect configured logger for Assistants stream errors (#2390) (8ba3009)
- security: restrict live CI credentials to protected main (#2405) (3554cdc)
- security: scope Cloudflare ecosystem API key files (#2398) (4f4b45d)
- security: secure Next.js Edge streaming example requests (#2424) (861caed)
- security: stop delayed and additional tool callbacks after cancellation (#2430) (c168599)
- security: stop retaining sensitive assistant stream events (#2407) (dfec129)
- settle concurrent stream event waiters in linear time (#2387) (a88c2ca)
- settle WebSocket event waiters in linear time (#2389) (489dc72)
- standard-schema: preserve validator bindings across helpers (#2483) (e4afdb7)
- streaming: reject named SSE provider error events (#2409) (b7a0bd6)
- tests: make credential-lifecycle held-inode scenarios portable to macOS (#2480) (60f5267)
- uploads: preserve Blob files and multipart media types (#2467) (d497fb3)
- webhooks: bound signature verification work (#2475) (05cf7ab)
- ws: block custom credential headers on redirects (#2429) (d2ab6e7)
- zod: support only provably JSON-native structured outputs (#2396) (c3d68e4)
Chores
- api: clarify image transparency and audio delta docs (#2439) (f14e885)
- api: document supported image generation models (#2432) (0e00909)
- api: update SDK generation metadata (#2448) (d1410d1)
- deps-dev: bump @cloudflare/workers-types from 5.20260809.1 to 5.20260816.1 in /ecosystem-tests/cloudflare-worker (#2452) (cf7e588)
- deps-dev: bump @smithy/hash-node from 4.4.16 to 4.5.2 (#2455) (342b0a3)
- deps-dev: bump @smithy/signature-v4 from 5.6.12 to 5.7.2 (#2459) (bf4386c)
- deps-dev: bump publint from 0.3.22 to 0.3.23 (#2457) (c100c83)
- deps-dev: bump puppeteer from 25.5.0 to 25.7.0 in /ecosystem-tests/browser-direct-import (#2451) (c6c406b)
- deps-dev: bump puppeteer from 25.5.0 to 25.7.0 in /ecosystem-tests/ts-browser-webpack (#2456) (e1faab1)
- deps-dev: bump ws from 8.21.1 to 8.21.3 (#2454) (1f84889)
- deps: bump next from 15.5.21 to 15.5.23 in /ecosystem-tests/vercel-edge (#2458) (cc532b3)
- deps: bump next from 16.3.0 to 16.3.1 (#2460) (a2d88c1)
- set a 3,000-line custom-code budget (#2446) (2035847)
Documentation
- encode recurring SDK review feedback in agent guidance (#2378) (e552523)
- security: add secure contributor and agent guidance (#2382) (459d009)
Refactors
- move embedding encoding into an SDK-owned helper (#2436) (db9e930)
- move file processing wait into an SDK-owned helper (#2438) (3d39e64)
- move vector store batch uploads into an SDK-owned helper (#2441) (0257e51)
- move vector store polling into an SDK-owned helper (#2437) (4317319)
- move webhook signature checks into an SDK-owned helper (#2442) (283e12b)
- share SDK-owned assistant run polling (#2440) (4de295b)
7.5.0 (2026-08-17)
Features
- add Bedrock Runtime endpoint support (SDK-290) (#2348) (4a199af)
- api: add new Daybreak and gpt-5.6-cyber model identifiers (9a38e63)
- api: add new Daybreak and gpt-5.6-cyber model identifiers (#2278) (9a38e63)
- api: Add ServiceTier and ImageDetail types (#2364) (602d481)
- api: add WebSocket stream IDs (#2314) (156a8db)
- api: add workload identity access token issued event (#2307) (322a5b1)
- api: deprecate Sora video APIs (#2313) (4424b40)
- api: Ultrafast tier, structured MCP and websocket errors, separate websocket events (#2332) (a3deafb)
Bug Fixes
- api: clarify audio upload metadata requirements (#2279) (34ecf3f)
- audio: prevent microphone leaks and playback pipe deadlocks (#2339) (1c692fe)
- audio: reject ffplay spawn errors (#2012) (6d42d4d)
- auth: reject redirects during workload identity token exchange (#2321) (240385e)
- auth: reject unsafe workload-identity token expirations (#2345) (1f0349d)
- avoid TypeError in toFile for Responses without a URL (#2311) (3313f54)
- await webhook verification in README examples (#2302) (0fe7ad0)
- azure: honor explicit browser denial for Entra token providers (#2328) (9d47510)
- azure: preserve model-to-deployment mapping for images.edit (#1918) (6c207c6)
- azure: prevent API-key disclosure across HTTP redirects (#2320) (f36c418)
- azure: prevent deployment path traversal (#2337) (a9d9d41)
- bedrock: safely sign inherited query parameter names (#2375) (3f8d5cc)
- chat: support custom tool calls in parser and ChatCompletionStream (#2023) (6fa9152)
- client: handle empty JSON response body without content-length (#1998) (b6447e9)
- configure Bash for pnpm scripts on Windows (#2330) (f5a0ad1)
- deps: remediate Dependabot and fixture vulnerabilities (#2282) (783da8f)
- embedding: response type for base64 encoding format (#1554) (ef69801)
- export AzureClientOptions (#1760) (511bf6d), closes #1735
- export workload identity helpers from openai/auth (#2344) (af8f14f)
- fail ecosystem CI when live credentials are missing (#2349) (a47dc75)
- format: restore formatting for generated SDK files (#2089) (6d69d4b)
- harden runTools against inherited function names (#2333) (f4496d1)
- honor defaultHeaders null for helper method header (#1857) (8eab09a)
- include items for strict Zod v3 any arrays (#2357) (4c32089)
- isolate Vercel ecosystem tests per request (#2359) (2831290)
- keep streamed Responses output text linear and canonical (#2354) (6827a40)
- lint: recognize Castiron-generated headers (#2124) (cf6237f)
- lint: restore generated SDK lint rules (#2126) (6b8162c)
- parse empty chat content when present (#2331) (53dd723)
- parser: recognize raw json_schema response format in auto-parsing checks (#2015) (fbd2541)
- pass file batch helper options through (#1855) (05ce028)
- preserve File-like metadata in toFile (#1883) (ba1a781)
- preserve skill upload paths without buffering native files (#2303) (30b9c41)
- preserve Skills upload file paths (#1856) (e75de97)
- preserve zero retry-after-ms precedence (#2329) (b44644e)
- prevent prototype event names from crashing SDK streams (#2315) (c014250)
- prevent prototype manipulation in strict Structured Outputs schemas (#2341) (838de7e)
- prevent prototype pollution in assistant stream deltas (#2280) (928fa2b)
- realtime: allow overriding WebSocket connection URLs (#2308) (7407413), closes #2305
- realtime: enforce Azure browser denial and redact all credentials (#2340) (a77861d)
- realtime: prevent Azure API-key disclosure across WebSocket redirects (#2325) (d5a1a1e)
- realtime: prevent remote error payloads from crashing clients (#2350) (896f021)
- realtime: remove immutable model updates from public and Azure examples (#2327) (08bd80a)
- reject unsupported proto Zod v3 object properties (#2352) (46a8ca0)
- remove vulnerable extract-zip from browser tests (#2312) (567ad4f)
- responses: reject with OpenAIError when the stream emits an error event (#2021) (a54014d)
- responses: validate streaming event indices before array access (#2323) (13eaf1d)
- security: bound untrusted AssistantStream delta array indices (#2326) (afdf5ef)
- security: contain Bedrock credentials to the configured endpoint origin (#2342) (23f0575)
- security: keep browser ecosystem API keys out of navigation URLs (#2353) (1029e82)
- security: prevent Bedrock bearer credential disclosure across redirects (#2377) (bfcccad)
- security: prevent global Array.prototype pollution in chat completion streams (#2318) (486e191)
- security: prevent multipart upload content-type header injection (#2322) (1c0b9ca)
- security: prevent process-wide prototype pollution via assistant stream snapshot IDs (#2316) (21a0653)
- security: prevent prototype manipulation in streamed chat snapshots (#2335) (e81d766)
- security: prevent streaming upload filename/header injection (#2363) (4ba4084)
- streaming: eliminate quadratic EventStream FIFO draining (#2356) (57521a1)
- streaming: eliminate quadratic SSE buffer copying (#2324) (ebdb296)
- streaming: finish SSE streams immediately after [DONE] (#2317) (7722171)
- streaming: handle mixed SSE line endings (#2309) (24d5ada)
- streaming: isolate AssistantStream message and tool-call lifecycles (#2334) (178e85f)
- streaming: make fragmented line decoding amortized linear (#2336) (f32e2df)
- streaming: surface mid-stream errors when iterating buffered streams (#2047) (8cc6cac)
- ws: prevent duplicate listener leaks in Node and browser adapters (#2347) (a032b85)
- zod: preserve literal payloads when escaping schema references (#2351) (8f189f4)
- zod: preserve null literals in Zod v3 JSON schemas (#2355) (ed5c5e6)
- zod: prevent generated definition name collisions (#2346) (0844573)
- zod: reject non-object Zod v3 strict schema roots (#2358) (cc7dbfa)
Chores
- api: update generated SDK attribution (#2125) (cd7c3e5)
- deps-dev: bump @aws-sdk/credential-provider-node from 3.972.47 to 3.972.77 (#2298) (67b581a)
- deps-dev: bump @aws-sdk/credential-provider-node from 3.972.77 to 3.972.78 (#2371) (2cc57c3)
- deps-dev: bump @cloudflare/workers-types from 5.20260710.1 to 5.20260804.1 in /ecosystem-tests/cloudflare-worker (#2283) (c9cdbad)
- deps-dev: bump @cloudflare/workers-types from 5.20260804.1 to 5.20260809.1 in /ecosystem-tests/cloudflare-worker (#2366) (6983363)
- deps-dev: bump @smithy/hash-node from 4.4.15 to 4.4.16 (#2293) (ba2fc9f)
- deps-dev: bump @smithy/protocol-http from 5.4.5 to 5.5.16 (#2289) (81cf407)
- deps-dev: bump @smithy/signature-v4 from 5.4.5 to 5.6.12 (#2294) (c70c34f)
- deps-dev: bump @types/node from 24.12.4 to 26.2.0 (#2370) (50db5db)
- deps-dev: bump html-webpack-plugin from 5.6.7 to 5.6.8 in /ecosystem-tests/ts-browser-webpack (#2367) (7259f9f)
- deps-dev: bump iconv-lite from 0.6.3 to 0.7.3 (#2299) (7cfb7f3)
- deps-dev: bump oxfmt from 0.61.0 to 0.62.0 (#2373) (16172a4)
- deps-dev: bump signal-exit from 3.0.7 to 4.1.0 (#2296) (9dac77d)
- deps-dev: bump start-server-and-test from 3.0.11 to 3.0.12 in /ecosystem-tests/vercel-edge (#2369) (9ff1aff)
- deps-dev: bump superstruct from 1.0.4 to 2.0.2 (#2285) (190d58c)
- deps-dev: bump ts-jest from 29.4.11 to 29.4.12 (#2374) (6320b64)
- deps-dev: bump ts-jest from 29.4.11 to 29.4.12 in /ecosystem-tests/cloudflare-worker (#2284) (9230649)
- deps-dev: bump ts-jest from 29.4.11 to 29.4.12 in /ecosystem-tests/node-ts-cjs (#2287) (a4b36bd)
- deps-dev: bump ts-jest from 29.4.11 to 29.4.12 in /ecosystem-tests/node-ts-cjs-web (#2288) (25d94fa)
- deps-dev: bump ts-jest from 29.4.11 to 29.4.12 in /ecosystem-tests/node-ts-esm (#2290) (9b33e5e)
- deps-dev: bump ts-jest from 29.4.11 to 29.4.12 in /ecosystem-tests/node-ts-esm-auto (#2291) (1579ae0)
- deps-dev: bump ts-jest from 29.4.11 to 29.4.12 in /ecosystem-tests/node-ts-esm-web (#2292) (6449a74)
- deps-dev: bump ts-jest from 29.4.11 to 29.4.12 in /ecosystem-tests/vercel-edge (#2295) (93096e2)
- deps-dev: bump ultracite from 7.8.4 to 7.10.0 (#2300) (8a7508c)
- deps-dev: bump webpack from 5.108.4 to 5.109.2 in /ecosystem-tests/ts-browser-webpack (#2368) (b49b227)
- deps-dev: bump wrangler from 4.110.0 to 4.118.0 in /ecosystem-tests/cloudflare-worker (#2286) (1c46aad)
- deps-dev: bump wrangler from 4.118.0 to 4.120.0 in /ecosystem-tests/cloudflare-worker (#2365) (01fae5e)
- limit Dependabot to 10 open pull requests (#2297) (b05dd10)
- lint: enable array-callback-return (#2104) (44fac0d)
- lint: enable arrow-body-style (#2238) (0a78d59)
- lint: enable class-methods-use-this (#2215) (cc73167)
- lint: enable complexity (#2230) (44004d6)
- lint: enable curly (#2275) (ac6d82f)
- lint: enable default-case (#2222) (037545a)
- lint: enable eqeqeq (#2259) (8e8fb1c)
- lint: enable func-name-matching (#2225) (a299c40)
- lint: enable func-names (#2274) (3055ccc)
- lint: enable guard-for-in (#2140) (1e2a7f4)
- lint: enable import/consistent-type-specifier-style (#2265) (559b8d0)
- lint: enable import/first (#2192) (bc116ec)
- lint: enable import/namespace (#2090) (31d8c66)
- lint: enable import/newline-after-import (#2174) (b2f57eb)
- lint: enable import/no-cycle (#2268) (5b1f37c)
- lint: enable import/no-duplicates (#2081) (44df76a)
- lint: enable import/no-mutable-exports (#2105) (9399d4c)
- lint: enable import/no-named-as-default-member (#2091) (bff8c24)
- lint: enable import/no-self-import (#2092) (38acc27)
- lint: enable jsdoc/check-property-names (#2093) (689aef6)
- lint: enable jsdoc/check-tag-names (#2147) (f7e60a9)
- lint: enable jsdoc/empty-tags (#2094) (d653124)
- lint: enable jsdoc/no-defaults (#2208) (fd5d85a)
- lint: enable jsdoc/require-param-description (#2209) (0ca3b41)
- lint: enable jsdoc/require-property-description (#2095) (2832fef)
- lint: enable jsdoc/require-property-name (#2096) (27c46d7)
- lint: enable jsdoc/require-property-type (#2097) (a1b69cd)
- lint: enable jsdoc/require-returns-description (#2106) (9aefc9e)
- lint: enable jsdoc/require-throws-description (#2098) (693dc5a)
- lint: enable jsdoc/require-throws-type (#2099) (2569734)
- lint: enable jsdoc/require-yields (#2137) (9aba641)
- lint: enable jsdoc/require-yields-description (#2100) (be49a47)
- lint: enable logical-assignment-operators (#2175) (35dbf46)
- lint: enable max-classes-per-file (#2197) (90a4982)
- lint: enable no-await-in-loop (#2256) (40da819)
- lint: enable no-bitwise (#2249) (6ac6d6d)
- lint: enable no-case-declarations (#2176) (181adc9)
- lint: enable no-duplicate-imports (#2082) (3ea6880)
- lint: enable no-else-return (#2181) (da60bda)
- lint: enable no-empty (#2146) (8862525)
- lint: enable no-empty-function (#2203) (75459e6)
- lint: enable no-eq-null (#2253) (18253be)
- lint: enable no-extend-native (#2107) (2e41934)
- lint: enable no-fallthrough (#2134) (f40eb23)
- lint: enable no-inline-comments (#2263) (3485404)
- lint: enable no-inner-declarations (#2198) (7c3fa63)
- lint: enable no-lonely-if (#2145) (e114825)
- lint: enable no-loop-func (#2108) (6f04bf0)
- lint: enable no-multi-assign (#2136) (dfe0fc6)
- lint: enable no-negated-condition (#2199) (b560532)
- lint: enable no-nested-ternary (#2223) (48d3c80)
- lint: enable no-new-wrappers (#2141) (4051f9f)
- lint: enable no-param-reassign (#2231) (7db898d)
- lint: enable no-plusplus (#2260) (570686e)
- lint: enable no-promise-executor-return (#2234) (381697a)
- lint: enable no-prototype-builtins (#2084) (dcdd7f1)
- lint: enable no-regex-spaces (#2077) (82d4671)
- lint: enable no-sequences (#2123) (33b07fc)
- lint: enable no-shadow (#2241) (602bc22)
- lint: enable no-sparse-arrays (#2235) (baf2e10)
- lint: enable no-template-curly-in-string (#2071) (3be6bc8)
- lint: enable no-throw-literal (#2149) (71bc2a6)
- lint: enable no-unmodified-loop-condition (#2109) (0cd20f7)
- lint: enable no-unsafe-optional-chaining (#2182) (2e88b45)
- lint: enable no-unused-vars (#2257) (d13da1d)
- lint: enable no-use-before-define (#2276) (246cd5f)
- lint: enable no-useless-concat (#2171) (582af5b)
- lint: enable no-useless-constructor (#2072) (04ab85b)
- lint: enable no-useless-escape (#2148) (bf154b5)
- lint: enable no-useless-rename (#2076) (84df305)
- lint: enable no-useless-return (#2177) (da234df)
- lint: enable no-var (#2258) (efc4c01)
- lint: enable no-warning-comments (#2200) (e061fc2)
- lint: enable node/callback-return (#2101) (2176c4e)
- lint: enable node/global-require (#2213) (3683c1d)
- lint: enable object-shorthand (#2237) (c2f448b)
- lint: enable oxc/no-accumulating-spread (#2201) (6f657c4)
- lint: enable oxc/no-barrel-file (#2183) (700f6f0)
- lint: enable prefer-arrow-callback (#2273) (d430d32)
- lint: enable prefer-const (#2085) (3c261d3)
- lint: enable prefer-destructuring (#2264) (afa0c8c)
- lint: enable prefer-exponentiation-operator (#2073) (10af170)
- lint: enable prefer-named-capture-group (#2246) (3989eed)
- lint: enable prefer-object-has-own (#2210) (f6c50d2)
- lint: enable prefer-object-spread (#2078) (127d266)
- lint: enable prefer-regex-literals (#2110) (a6cbb45)
- lint: enable prefer-template (#2266) (84e6741)
- lint: enable promise/avoid-new (#2245) (6d8ac0c)
- lint: enable promise/param-names (#2166) (7a29da3)
- lint: enable promise/prefer-await-to-callbacks (#2224) (53ab08d)
- lint: enable promise/prefer-await-to-then (#2232) (d0eeccf)
- lint: enable promise/prefer-catch (#2111) (fb3406a)
- lint: enable radix (#2083) (a205dff)
- lint: enable require-await (#2271) (d687018)
- lint: enable require-unicode-regexp (#2269) (1299a38)
- lint: enable typescript/array-type (#2250) (c769c3d)
- lint: enable typescript/ban-ts-comment (#2261) (6f395e4)
- lint: enable typescript/ban-types (#2211) (01a28d0)
- lint: enable typescript/consistent-generic-constructors (#2080) (f69b229)
- lint: enable typescript/consistent-indexed-object-style (#2216) (467336c)
- lint: enable typescript/consistent-type-definitions (#2262) (94445b1)
- lint: enable typescript/consistent-type-imports (#2272) (259b978)
- lint: enable typescript/method-signature-style (#2248) (fd2d250)
- lint: enable typescript/no-dynamic-delete (#2217) (89ef2c4)
- lint: enable typescript/no-empty-interface (#2112) (9522416)
- lint: enable typescript/no-empty-object-type (#2184) (b0f697e)
- lint: enable typescript/no-explicit-any (#2277) (0eae8c6)
- lint: enable typescript/no-extraneous-class (#2113) (509ba3e)
- lint: enable typescript/no-import-type-side-effects (#2227) (2e608ef)
- lint: enable typescript/no-inferrable-types (#2185) (ee0c84c)
- lint: enable typescript/no-invalid-void-type (#2167) (cd2d035)
- lint: enable typescript/no-namespace (#2214) (254364a)
- lint: enable typescript/no-non-null-assertion (#2267) (702cf6d)
- lint: enable typescript/no-this-alias (#2114) (191e1fe)
- lint: enable typescript/no-wrapper-object-types (#2178) (b2e79a9)
- lint: enable typescript/parameter-properties (#2195) (2f5b813)
- lint: enable typescript/prefer-for-of (#2194) (3c6465a)
- lint: enable typescript/prefer-ts-expect-error (#2247) (0dd1882)
- lint: enable typescript/unified-signatures (#2139) (4427bb5)
- lint: enable unicorn/catch-error-name (#2242) (0698eb4)
- lint: enable unicorn/consistent-assert (#2229) (50d46bd)
- lint: enable unicorn/consistent-existence-index-check (#2143) (1828b28)
- lint: enable unicorn/consistent-function-scoping (#2255) (09c4946)
- lint: enable unicorn/custom-error-definition (#2179) (47d4eed)
- lint: enable unicorn/error-message (#2115) (61f47a8)
- lint: enable unicorn/escape-case (#2074) (808929e)
- lint: enable unicorn/filename-case (#2243) (fd8b09d)
- lint: enable unicorn/import-style (#2205) (2e71d00)
- lint: enable unicorn/new-for-builtins (#2190) (5e23c02)
- lint: enable unicorn/no-anonymous-default-export (#2191) (7e84bb2)
- lint: enable unicorn/no-array-for-each (#2206) (af85397)
- lint: enable unicorn/no-array-reduce (#2207) (18d3fdb)
- lint: enable unicorn/no-array-sort (#2189) (dfc05e0)
- lint: enable unicorn/no-await-expression-member (#2218) (d756a97)
- lint: enable unicorn/no-console-spaces (#2226) (9a36d9d)
- lint: enable unicorn/no-hex-escape (#2129) (d395852)
- lint: enable unicorn/no-immediate-mutation (#2116) (b06c584)
- lint: enable unicorn/no-lonely-if (#2172) (3e26105)
- lint: enable unicorn/no-negated-condition (#2202) (e82bd88)
- lint: enable unicorn/no-nested-ternary (#2219) (068015f)
- lint: enable unicorn/no-object-as-default-parameter (#2117) (6ae2ed7)
- lint: enable unicorn/no-thenable (#2118) (0b521ea)
- lint: enable unicorn/no-this-assignment (#2119) (4a4396d)
- lint: enable unicorn/no-typeof-undefined (#2220) (556bb04)
- lint: enable unicorn/no-useless-fallback-in-spread (#2102) (008eebd)
- lint: enable unicorn/no-useless-switch-case (#2168) (5401737)
- lint: enable unicorn/no-useless-undefined (#2239) (12ea4bb)
- lint: enable unicorn/no-zero-fractions (#2075) (ec42da9)
- lint: enable unicorn/numeric-separators-style (#2251) (4fa2035)
- lint: enable unicorn/prefer-at (#2221) (08f37c7)
- lint: enable unicorn/prefer-bigint-literals (#2144) (d272540)
- lint: enable unicorn/prefer-class-fields (#2138) (da7b9f5)
- lint: enable unicorn/prefer-code-point (#2173) (319536a)
- lint: enable unicorn/prefer-dom-node-append (#2131) (1369610)
- lint: enable unicorn/prefer-dom-node-text-content (#2132) (a210c6c)
- lint: enable unicorn/prefer-event-target (#2204) (93e8c79)
- lint: enable unicorn/prefer-includes (#2130) (892eeaf)
- lint: enable unicorn/prefer-logical-operator-over-ternary (#2120) (7373314)
- lint: enable unicorn/prefer-math-trunc (#2103) (1230e64)
- lint: enable unicorn/prefer-module (#2240) (05eaa62)
- lint: enable unicorn/prefer-native-coercion-functions (#2121) (a596287)
- lint: enable unicorn/prefer-node-protocol (#2252) (15009d6)
- lint: enable unicorn/prefer-number-properties (#2180) (9cd0461)
- lint: enable unicorn/prefer-object-from-entries (#2122) (1be3aae)
- lint: enable unicorn/prefer-optional-catch-binding (#2196) (8aa1a3c)
- lint: enable unicorn/prefer-query-selector (#2169) (4c3932e)
- lint: enable unicorn/prefer-regexp-test (#2133) (68df5ae)
- lint: enable unicorn/prefer-response-static-json (#2254) (96859ed)
- lint: enable unicorn/prefer-spread (#2212) (0e1ec6f)
- lint: enable unicorn/prefer-string-replace-all (#2233) (a780b74)
- lint: enable unicorn/prefer-string-slice (#2236) (f3bde9e)
- lint: enable unicorn/prefer-ternary (#2188) (353ef7e)
- lint: enable unicorn/prefer-type-error (#2193) (633512b)
- lint: enable unicorn/require-module-specifiers (#2170) (0876cbd)
- lint: enable unicorn/switch-case-braces (#2270) (f64e5d5)
- lint: enable unicorn/text-encoding-identifier-case (#2244) (420529c)
- lint: enable unicorn/throw-new-error (#2079) (28408f8)
- lint: enable vars-on-top (#2228) (322e4d2)
- lint: enable yoda (#2135) (7eef244)
- remove Stainless attribution from legacy SDK files (#2304) (85f7c6b)
Documentation
- api: describe response stream event unions (#2319) (3f0f688)
- document all handwritten SDK surfaces (#2281) (d9c212a)
- readme: fix links to relocated documentation (#2088) (a82e8de)
Build System
- deps-dev: bump @swc/core from 1.15.40 to 1.15.47 (#2187) (f79329f)
- deps-dev: bump jest and @types/jest (#2157) (55dd17b)
- deps-dev: bump ws from 8.21.0 to 8.21.1 (#2155) (d0e67a9)
- deps-dev: bump yargs from 17.7.2 to 18.1.0 (#2154) (c5f12d1)
- deps: bump ip-address from 10.2.0 to 10.4.0 in /ecosystem-tests/ts-browser-webpack (#2069) (c6e9ba3)
- deps: bump nanoid from 3.3.15 to 3.3.18 in /ecosystem-tests/vercel-edge (#2142) (7b986fc)
- deps: bump next from 15.5.20 to 15.5.21 in /ecosystem-tests/vercel-edge (#2128) (3f8403a)
- deps: bump next from 15.5.21 to 16.2.12 (#2156) (9387d40)
- deps: bump undici from 7.28.0 to 7.29.0 in /ecosystem-tests/node-ts-cjs (#2070) (130b038)
- deps: enforce an eight-day dependency cooldown (#2186) (c052204)
7.4.0 (2026-08-03)
Features
Bug Fixes
Documentation
Build System
- deps-dev: bump @smithy/hash-node from 4.3.5 to 4.4.15 (#2064) (481b325)
- deps-dev: bump @types/web from 0.0.194 to 0.0.354 (#2061) (f61f267)
- deps-dev: bump publint from 0.2.12 to 0.3.22 (#2058) (823d7df)
- deps: bump dotenv from 16.6.1 to 17.4.2 (#2065) (3576574)
- deps: bump fast-uri from 3.1.4 to 3.1.5 in /ecosystem-tests/vercel-edge (#2050) (590982f)
- deps: bump ip-address from 10.2.0 to 10.4.0 in /ecosystem-tests/vercel-edge (#2056) (4d927de)
- migrate release workflow to upstream release-please (#2048) (d41c272)
7.3.0 (2026-07-31)
Full Changelog: v7.2.0...v7.3.0
Features
- api: content provenance checks (c6f9339)
Chores
Documentation
7.1.0 (2026-07-28)
Full Changelog: v7.0.0...v7.1.0
Features
- api: transcription model updates (b35ca14)
Chores
- internal: codegen related update (ee871e5)
7.0.0 (2026-07-27)
Full Changelog: v6.49.0...v7.0.0
⚠ BREAKING CHANGES
- require Node.js 22 and codify version support (#2026)
Features
Build System
6.49.0 (2026-07-23)
Full Changelog: v6.48.0...v6.49.0
Features
- api: accept
Nonefor prompt_cache_key/safety_identifier (c54a7f3) - api: add support for
spend_limitadmin apis (e8238b0) - helpers: add standard schema support (#1997) (4ced1a8)
- helpers: add zod realtime function helper (#1996) (ee59911)
- stlc: configurable CI runner and private-production-repo support in workflow templates (967a66b)
- zod: support schema definitions (#1993) (eb04567)
Bug Fixes
- address code scanning findings (#2007) (2706888)
- address remaining Dependabot alerts (#2005) (6ab3428)
- azure: normalize endpoint trailing slashes (#1995) (39a15b4)
- ci: restore explicit TypeScript SDK runner selection (fe79401)
- runTools: sanitize replayed messages (#1990) (a60cc25)
- stream: handle audio completion markers (#1991) (bd86817)
- zod: escape schema definition refs before strict validation (bff2b10)
- zod: infer parsed tool callback arguments (#1992) (83cdb79)
- zod: preserve schema types while escaping refs (cb7e195)
Chores
6.48.0 (2026-07-17)
Full Changelog: v6.47.0...v6.48.0
Features
- api: /organization/projects/{project_id}/service_accounts/{service_account_id}/api_keys" endpoint (9133b54)
- api: manual updates (34acd23)
- api: manual updates (3188968)
Bug Fixes
Chores
6.47.0 (2026-07-14)
Full Changelog: v6.46.0...v6.47.0
Features
- add async event iterators (#1977) (2ece8aa)
- add fromReadableStream to ResponseStream (#1987) (5984f44)
- api: add owner_project_access to APIKeyListParams (7bfce97)
- pass context to runTools callbacks (#1973) (a6f01e5)
- support streaming file uploads (#1970) (a86f1fd)
Bug Fixes
- assistants: preserve readable stream deltas (#1994) (1cdc019)
- avoid deep Deno Zod types (#1980) (ae17127), closes #984
- ci: bump @arethetypeswrong/cli to ^0.18.0 and run CI workflows on Node 24 (baa0b2a)
- emit stream finalization errors (#1972) (9555b71)
- handle Azure filter stream chunks (#1982) (c1c5c28), closes #1015
- zod: support zod v4 mini schemas (#1985) (2df10fc)
Documentation
6.46.0 (2026-07-09)
Full Changelog: v6.45.0...v6.46.0
Features
- api: gpt-5.6-sol updates (6c397d5)
Bug Fixes
- assistants: place array delta entries by index instead of appending (#1963) (0e18d30)
- runner: normalize missing tool call IDs (#1958) (6371623)
- upgrade next to 15.5.16 in examples (#1967) (95b54e5)
Documentation
6.45.0 (2026-06-24)
Full Changelog: v6.44.0...v6.45.0
Features
- add afterCompletion hook to runTools (#1064) (4976c22)
- realtime: support sideband call_id connections (#1795) (4fd59e1)
- reject emitted promise on error in EventEmitter (#1596) (e0b09da)
- responses: add response input items helper (#1794) (7e5a86a)
- responses: add response stream accumulator helper (#1793) (32e3e39)
Bug Fixes
- avoid serializing null optional bodies (e4ddff6)
- clean up stream abort listeners (#1884) (be55b8f)
- Leading whitespace chunks break partial parser (structured outputs) (#1213) (88d806e)
- responses: avoid parsing incomplete structured output (#1852) (4c39681)
- responses: restore output_text on streamed final responses (#1681) (bbde4d9)
- validate workload identity access tokens (#1885) (80febe4)
- zod: fully resolve extracted wrapper definitions (#1766) (5d46ed2)
- zod: sanitize extracted definition refs (#1903) (6ef2111)
Chores
- internal: codegen related update (81fcf96)
Documentation
- add vision example using image URL (#1571) (70966c9)
- azure: add Responses API example (#1675) (46453b0)
- azure: use standard client for v1 chat (#1692) (fba57e5)
- clarify abort-on-function-call example (#1843) (f21f248)
- clarify assistant stream event names (#1860) (95fc6cd)
- clarify supported zod schema features (#1880) (ea93760)
- fix helper example links (#1890) (9c58f39)
- fix typos in tool calls stream example (#1817) (8915ef0)
- readme: fix two typos and remove duplicate section (#1733) (e2f8051)
- runner: remove "the the" duplicate-word typo in JSDoc (#1892) (52f075f)
Build System
6.44.0 (2026-06-17)
Full Changelog: v6.43.0...v6.44.0
Features
- api: update OpenAPI spec or Stainless config (d05bdbc)
6.42.0 (2026-06-03)
Full Changelog: v6.41.0...v6.42.0
Features
- api: responses.moderation and chat_completions.moderation (6d8f592)
6.40.0 (2026-06-01)
Full Changelog: v6.39.1...v6.40.0
Features
- api: workload identity in audit logs, additional_tools item in responses, fix ActionSearch.query to be optional. (aee09f3)
Chores
- remove migrate CLI (673c618)
6.39.0 (2026-05-21)
Full Changelog: v6.38.0...v6.39.0
Features
- api: api update (33ea11f)
- api: manual updates (c210b09)
- api: manual updates (92df9dc)
- api: update OpenAPI spec or Stainless config (c7c0f52)
Bug Fixes
- types: allow runtime fetch options (8f5003d)
- typescript: upgrade tsc-multi so that it works with Node 26 (068f9c6)
Chores
6.38.0 (2026-05-13)
Full Changelog: v6.37.0...v6.38.0
Features
- api: add service_tier parameter to responses compact method (423e838)
6.37.0 (2026-05-07)
Full Changelog: v6.36.0...v6.37.0
Features
- api: add quantity field to admin organization usage responses (273a8f7)
- api: add web_search_call.results output option to responses (91c75e0)
- api: launch realtime translate + update image 2 (a296b66)
- api: manual updates (794b905)
- api: manual updates (6963729)
- api: realtime 2 (f4b7177)
Bug Fixes
- api: fix imagegen
sizeenum regression (4fe8469)
Chores
- redact api-key headers in debug logs (99c9c80)
6.36.0 (2026-05-01)
Full Changelog: v6.35.0...v6.36.0
Features
- api: add group_type/user metadata fields, update types across admin resources (cc52f97)
- api: add support for Admin API Keys per endpoint (770d187)
- api: admin API updates (ee2bd2d)
- api: manual updates (6af2b6d)
- api: manual updates (f2dceda)
Bug Fixes
Chores
6.35.0 (2026-04-28)
Full Changelog: v6.34.0...v6.35.0
Features
- api: Add detail to InputFileContent (910ec5d)
- api: add OAuthErrorCode type (f84bd1f)
- api: add prompt_cache_retention parameter to responses compact (c486d1f)
- api: add web_search_call.results to ResponseIncludable (72449a1)
- api: manual updates (b742f1f)
- client: add support for binary messages (c498cc3)
- client: add support for path parameters in websockets clients (e0aba70)
- client: add support for queuing messages when waiting for a connection (fd8868c)
- client: add support for WebSockets in the browser when using simple auth (27bda6a)
- client: support automatic reconnection for websockets (189410b)
- typescript: expose underlying WebSocket type (7e96939)
Bug Fixes
- client: allow single messages greater than the size of the websockets queue (ad19ab2)
- internal: gitignore generated
oidcdir (cf860f6) - types: correct prompt_cache_retention enum value in chat/completions and responses (5a81e1a)
- types: preserve emitted ts-ignore comments (1cde375)
Chores
- ci: remove release-doctor workflow (e5ab4d1)
- format: apply prettier output (80fa23d)
- format: ignore release-updated jsr config (f606e8b)
- formatter: run prettier and eslint separately (68a988e)
- internal: codegen related update (7673137)
- internal: fix package.json duplicate keys (5f075a8)
- internal: more robust bootstrap script (252e70a)
- internal: version bump (34c84ee)
- tests: bump steady to v0.22.1 (316bdba)
Documentation
- improve examples (6400d19)
6.34.0 (2026-04-08)
Full Changelog: v6.33.0...v6.34.0
Features
- api: add phase field to Message in conversations (eb7cbc1)
- client: add support for short-lived tokens (#839) (a72ebcf)
Bug Fixes
- api: remove web_search_call.results from ResponseIncludable in responses (1f6968e)
Chores
- internal: codegen related update (1081460)
- internal: update multipart form array serialization (3faee8d)
- tests: bump steady to v0.20.1 (b73cc6b)
Documentation
- api: add multi-file ingestion recommendations to vector-stores files/file-batches (1bc32a3)
6.33.0 (2026-03-25)
Full Changelog: v6.32.0...v6.33.0
Features
- api: add keys field to computer action types (27a850e)
- client: add async iterator and stream() to WebSocket classes (e1c16ee)
Bug Fixes
- api: align SDK response types with expanded item schemas (491cd52)
- types: make type required in ResponseInputMessageItem (2012293)
Chores
- ci: skip lint on metadata-only changes (74a917f)
- internal: refactor imports (cfe9c60)
- internal: update gitignore (71bd114)
- tests: bump steady to v0.19.4 (f2e9dea)
- tests: bump steady to v0.19.5 (37c6cf4)
- tests: bump steady to v0.19.6 (496b3af)
- tests: bump steady to v0.19.7 (8491eb6)
Refactors
- tests: switch from prism to steady (47c0581)
6.32.0 (2026-03-17)
Full Changelog: v6.31.0...v6.32.0
Features
- api: 5.4 nano and mini model slugs (068df6d)
6.31.0 (2026-03-16)
Full Changelog: v6.30.1...v6.31.0
Features
- api: add in/nin filter types to ComparisonFilter (b2eda27)
6.28.0 (2026-03-13)
Full Changelog: v6.27.0...v6.28.0
Features
- api: manual updates (d543959)
- api: manual updates (4f87840)
- api: sora api improvements: character api, video extensions/edits, higher resolution exports. (262dac2)
Bug Fixes
- types: remove detail field from ResponseInputFile and ResponseInputFileContent (8d6c0cd)
Chores
6.27.0 (2026-03-05)
Full Changelog: v6.26.0...v6.27.0
Features
- api: The GA ComputerTool now uses the CompuerTool class. The 'computer_use_preview' tool is moved to ComputerUsePreview (0206188)
Chores
- internal: improve import alias names (9cc2478)
6.26.0 (2026-03-05)
Full Changelog: v6.25.0...v6.26.0
Features
- api: gpt-5.4, tool search tool, and new computer tool (1d1e5a9)
Bug Fixes
- api: internal schema fixes (6b401ad)
- api: manual updates (2b54919)
- api: readd phase (4a0cf29)
- api: remove phase from message types, prompt_cache_key param in responses (088fca6)
Chores
6.25.0 (2026-02-24)
Full Changelog: v6.24.0...v6.25.0
Features
- api: add phase (e32b853)
Bug Fixes
Chores
- internal: refactor sse event parsing (0ea2380)
6.24.0 (2026-02-24)
Full Changelog: v6.23.0...v6.24.0
Features
- api: add gpt-realtime-1.5 and gpt-audio-1.5 models to realtime (75875bf)
6.23.0 (2026-02-23)
Full Changelog: v6.22.0...v6.23.0
Features
- api: websockets for responses api (c6b96b8)
Bug Fixes
- docs/contributing: correct pnpm link command (8a198a5)
- internal: skip tests that depend on mock server (3d88cb0)
Chores
Documentation
6.22.0 (2026-02-14)
Full Changelog: v6.21.0...v6.22.0
Features
- api: container network_policy and skills (65c1482)
Bug Fixes
- docs: restore helper methods in API reference (3a4c189)
- webhooks: restore webhook type exports (49bbf46)
Chores
- internal: avoid type checking errors with ts-reset (4b0d1f2)
Documentation
6.21.0 (2026-02-10)
Full Changelog: v6.20.0...v6.21.0
Features
- api: support for images in batch api (017ba1c)
6.20.0 (2026-02-10)
Full Changelog: v6.19.0...v6.20.0
Features
- api: skills and hosted shell (e4bdd62)
6.19.0 (2026-02-09)
Full Changelog: v6.18.0...v6.19.0
Features
- api: responses context_management (40e7671)
6.18.0 (2026-02-05)
Full Changelog: v6.17.0...v6.18.0
Features
- api: image generation actions for responses; ResponseFunctionCallArgumentsDoneEvent.name (d373c32)
Bug Fixes
- client: avoid memory leak with abort signals (b449f36)
- client: avoid removing abort listener too early (1c045f7)
- client: undo change to web search Find action (8259b45)
- client: update type for
find_in_pageaction (9aa8d98)
Chores
6.17.0 (2026-01-28)
Full Changelog: v6.16.0...v6.17.0
Features
- api: add shell_call_output status field (edf9590)
- api: api update (6a2eb80)
- api: api updates (19ca100)
Bug Fixes
- api: mark assistants as deprecated (3ae2a14)
Chores
6.16.0 (2026-01-09)
Full Changelog: v6.15.0...v6.16.0
Features
- api: add new Response completed_at prop (ca40534)
- ci: add breaking change detection workflow (a6f3dea)
Chores
6.10.0 (2025-12-04)
Full Changelog: v6.9.1...v6.10.0
Features
- api: gpt-5.1-codex-max and responses/compact (935f79e)
Chores
6.9.1 (2025-11-17)
Full Changelog: v6.9.0...v6.9.1
Bug Fixes
- api: align types of input items / output items for typescript (99adaa7)
6.9.0 (2025-11-13)
Full Changelog: v6.8.1...v6.9.0
Features
- api: gpt 5.1 (58e78a8)
Chores
- add typescript-estree dependency for jsr readme script (3759514)
6.8.1 (2025-11-05)
Full Changelog: v6.8.0...v6.8.1
Bug Fixes
- api: fix nullability of logprobs (40a403c)
6.8.0 (2025-11-03)
Full Changelog: v6.7.0...v6.8.0
Features
- api: Realtime API token_limits, Hybrid searching ranking options (6a5b48c)
- api: remove InputAudio from ResponseInputContent (9909fef)
Chores
- internal: codegen related update (3ad52aa)
6.6.0 (2025-10-20)
Full Changelog: v6.5.0...v6.6.0
Features
- api: Add responses.input_tokens.count (520c8a9)
Bug Fixes
- api: internal openapi updates (d4aaef9)
6.4.0 (2025-10-16)
Full Changelog: v6.3.0...v6.4.0
Features
- api: Add support for gpt-4o-transcribe-diarize on audio/transcriptions endpoint (2d27392)
6.3.0 (2025-10-10)
Full Changelog: v6.2.0...v6.3.0
Features
- api: comparison filter in/not in (1a733c6)
Chores
- internal: use npm pack for build uploads (a532410)
6.2.0 (2025-10-06)
Full Changelog: v6.1.0...v6.2.0
Features
- api: dev day 2025 launches (f2816db)
Chores
6.1.0 (2025-10-02)
Full Changelog: v6.0.1...v6.1.0
Features
- api: add support for realtime calls (5de9585)
6.0.1 (2025-10-01)
Full Changelog: v6.0.0...v6.0.1
Bug Fixes
- api: add status, approval_request_id to MCP tool call (498c6a5)
6.0.0 (2025-09-30)
Full Changelog: v5.23.2...v6.0.0
⚠ BREAKING CHANGES
- api:
ResponseFunctionToolCallOutputItem.outputandResponseCustomToolCallOutput.outputnow returnstring | Array<ResponseInputText | ResponseInputImage | ResponseInputFile>instead ofstringonly. This may break existing callsites that assumeoutputis always a string.
Features
- api: Support images and files for function call outputs in responses, BatchUsage (abe56f8)
Chores
5.23.1 (2025-09-26)
Full Changelog: v5.23.0...v5.23.1
Bug Fixes
- realtime: remove beta header from GA classes (a5e9e70)
Performance Improvements
- faster formatting (d56f309)
Chores
5.22.1 (2025-09-22)
Full Changelog: v5.22.0...v5.22.1
Bug Fixes
- api: fix mcp tool name (fa9f305)
Chores
5.22.0 (2025-09-19)
Full Changelog: v5.21.0...v5.22.0
Features
- api: add reasoning_text (7ff6186)
Chores
- api: manual fixes for streaming (3a2ae4c)
5.21.0 (2025-09-17)
Full Changelog: v5.20.3...v5.21.0
Features
- api: type updates for conversations, reasoning_effort and results for evals (f243f54)
5.20.3 (2025-09-15)
Full Changelog: v5.20.2...v5.20.3
Chores
- api: docs and spec refactoring (05b4498)
5.20.2 (2025-09-12)
Full Changelog: v5.20.1...v5.20.2
Bug Fixes
- coerce nullable values to undefined (836d1b4)
Chores
- api: Minor docs and type updates for realtime (ccb00dc)
5.20.0 (2025-09-08)
Full Changelog: v5.19.1...v5.20.0
Features
- api: ship the RealtimeGA API shape (4286ddd)
Chores
- ci build action (c8ce143)
5.19.0 (2025-09-03)
Full Changelog: v5.18.1...v5.19.0
Features
- api: Add gpt-realtime models (256d932)
5.18.1 (2025-09-02)
Full Changelog: v5.18.0...v5.18.1
Chores
- api: manual updates for ResponseInputAudio (570501b)
5.18.0 (2025-09-02)
Full Changelog: v5.17.0...v5.18.0
Features
Bug Fixes
- update non beta realtime websockets helpers (265a42f)
5.17.0 (2025-09-02)
Full Changelog: v5.16.0...v5.17.0
Features
- api: realtime API updates (e817255)
Chores
- internal: update global Error reference (e566ff3)
5.16.0 (2025-08-26)
Full Changelog: v5.15.0...v5.16.0
Features
- api: add web search filters (975b141)
Chores
5.15.0 (2025-08-21)
Full Changelog: v5.14.0...v5.15.0
Features
- api: Add connectors support for MCP tool (048bee3)
- api: adding support for /v1/conversations to the API (1380d17)
Chores
- add package to package.json (6748b2b)
5.13.1 (2025-08-19)
Full Changelog: v5.13.0...v5.13.1
Chores
- api: accurately represent shape for verbosity on Chat Completions (5ddac3c)
5.12.2 (2025-08-08)
Full Changelog: v5.12.1...v5.12.2
Bug Fixes
- client: fix verbosity parameter location in Responses (eaa246f)
5.12.1 (2025-08-07)
Full Changelog: v5.12.0...v5.12.1
Features
- api: adds GPT-5 and new API features: platform.openai.com/docs/guides/gpt-5 (59acd85)
Chores
- internal: move publish config (b3d02f6)
5.10.0 (2025-07-16)
Full Changelog: v5.9.2...v5.10.0
Features
- api: manual updates (35338b4)
Chores
- internal: version bump (3d9de4b)
5.9.1 (2025-07-15)
Full Changelog: v5.9.0...v5.9.1
Chores
- api: update realtime specs, build config (bb4649f)
5.9.0 (2025-07-10)
Full Changelog: v5.8.4...v5.9.0
Features
- api: add file_url, fix event ID (5f5d39e)
5.8.2 (2025-06-27)
Full Changelog: v5.8.1...v5.8.2
Bug Fixes
- client: get fetchOptions type more reliably (b3c959d)
5.8.1 (2025-06-26)
Full Changelog: v5.8.0...v5.8.1
Bug Fixes
- client: ensure addOutputText is called on responses.retrieve (d55bb64)
Chores
5.8.0 (2025-06-26)
Full Changelog: v5.7.0...v5.8.0
Features
- api: webhook and deep research support (f2b4f66)
Bug Fixes
- ci: release-doctor — report correct token name (aed2587)
Refactors
- types: replace Record with mapped types (7865910)
5.7.0 (2025-06-23)
Full Changelog: v5.6.0...v5.7.0
Features
- api: update api shapes for usage and code interpreter (f2100e8)
5.6.0 (2025-06-20)
Full Changelog: v5.5.1...v5.6.0
Features
- api: make model and inputs not required to create response (52211c0)
Bug Fixes
- client: explicitly copy fetch in withOptions (0efacae)
Chores
5.4.0 (2025-06-16)
Full Changelog: v5.3.0...v5.4.0
Features
- api: add reusable prompt IDs (c720bb3)
- client: add support for endpoint-specific base URLs (05f558b)
Bug Fixes
- publish script — handle NPM errors correctly (a803cce)
Chores
5.2.0 (2025-06-09)
Full Changelog: v5.1.1...v5.2.0
Features
- api: Add tools and structured outputs to evals (64844f1)
Bug Fixes
- changelog: remove duplicated entries (18484cc)
Chores
- avoid type error in certain environments (44ac3d9)
Documentation
5.1.1 (2025-06-05)
Full Changelog: v5.1.0...v5.1.1
Bug Fixes
- assistants: handle thread.run.incomplete while streaming (8f5e7f3)
Chores
5.1.0 (2025-06-03)
Full Changelog: v5.0.2...v5.1.0
Features
- api: add new realtime and audio models, realtime session options (1219f09)
Chores
5.0.2 (2025-06-02)
Full Changelog: v5.0.1...v5.0.2
Bug Fixes
- api: Fix evals and code interpreter interfaces (992a9d8)
Chores
5.0.0 (2025-05-29)
Full Changelog: v5.0.0-alpha.0...v5.0.0
Features
- add audio helpers (ec5067d)
- add migration guide (cfd2088)
- add SKIP_BREW env var to ./scripts/bootstrap (7ea4a24)
- api: add /v1/responses and built-in tools (91af47c)
- api: add /v1/responses and built-in tools (0612242)
- api: add
get /chat/completionsendpoint (9697139) - api: add
get /chat/completionsendpoint (16c67be) - api: add
get /responses/{response_id}/input_itemsendpoint (f2c5aba) - api: add
get /responses/{response_id}/input_itemsendpoint (3676d34) - api: add container endpoint (3ffca5c)
- api: add container endpoint (e973476)
- api: Add evalapi to sdk (70092d7)
- api: Add evalapi to sdk (#1456) (33b66f5)
- api: add gpt-4.5-preview (1d4478d)
- api: add gpt-4.5-preview (#1349) (bb269a1)
- api: add image sizes, reasoning encryption (0c25021)
- api: add image sizes, reasoning encryption (31cd88f)
- api: add o3 and o4-mini model IDs (19cda5d)
- api: add o3 and o4-mini model IDs (a0d0000)
- api: Add reinforcement fine-tuning api support (e6bbaf5)
- api: Add reinforcement fine-tuning api support (fabe6ec)
- api: add support for storing chat completions (59da177)
- api: add support for storing chat completions (#1327) (be1ca6b)
- api: adding gpt-4.1 family of model IDs (8a2a745)
- api: adding gpt-4.1 family of model IDs (840e7de)
- api: adding new image model support (a0010fd)
- api: adding new image model support (c353531)
- api: Config update for pakrym-stream-param (71c3d31)
- api: Config update for pakrym-stream-param (b4d1b46)
- api: Config update for pakrym-stream-param (469ad7b)
- api: further updates for evals API (3019a7e)
- api: further updates for evals API (3f6f248)
- api: manual updates (debe529)
- api: manual updates (e83286b)
- api: manual updates (959eace)
- api: manual updates (179a607)
- api: manual updates (0cb0c86)
- api: manual updates (678ae6b)
- api: manual updates (4560dc6)
- api: manual updates (554c3b1)
- api: manual updates (b893d81)
- api: manual updates (c1c2819)
- api: manual updates (efce6d3)
- api: manual updates (32afb00)
- api: new API tools (0cc8994)
- api: new API tools (fb4014f)
- api: new models for TTS, STT, + new audio features for Realtime (1eab9ed)
- api: new models for TTS, STT, + new audio features for Realtime (#1407) (d11b13c)
- api: new streaming helpers for background responses (c071491)
- api: new streaming helpers for background responses (1ddd6ff)
- api: o1-pro now available through the API (3540b06)
- api: o1-pro now available through the API (#1398) (aefd267)
- api: responses x eval api (b349ade)
- api: responses x eval api (ea1d56c)
- api: Updating Assistants and Evals API schemas (e68f598)
- api: Updating Assistants and Evals API schemas (8cc63d3)
- client: accept RFC6838 JSON content types (67da9ce)
- client: add Realtime API support (7737d25)
- client: add withOptions helper (7e9ea85)
- client: improve logging (ead0ba4)
- client: promote beta completions methods to GA (4c622f9)
- version 5 (855144b)
- version 5 (855144b)
Bug Fixes
- api: add missing file rank enum + more metadata (b943a0a)
- api: correct some Responses types (3ca8965)
- api: correct some Responses types (#1391) (e983d0c)
- api: improve type resolution when importing as a package (b6bf469)
- api: improve type resolution when importing as a package (#1444) (4af79dd)
- assistants: handle
thread.run.incompleteevent (a2714bb) - audio: correctly handle transcription streaming (9c7d352)
- avoid type error in certain environments (#1413) (f395e95)
- azure/audio: use model param for deployments (0eda70a)
- azure: add /images/edits to deployments endpoints (#1509) (4b18059)
- azure: add /images/edits to deployments endpoints (#1509) (84fc31a)
- azure: use correct internal method (a9c7821)
- client: always overwrite when merging headers (c160550)
- client: fix export map for index exports (#1328) (26d5868)
- client: fix export map for index exports, accept BunFile (9416c96)
- client: fix TypeError with undefined File (0e980d0)
- client: remove duplicate types (bee2ce5)
- client: remove duplicate types (#1410) (23fd3ff)
- client: return binary content from
get /containers/{container_id}/files/{file_id}/content(8502966) - client: return binary content from
get /containers/{container_id}/files/{file_id}/content(899869b) - client: return binary content from
get /containers/{container_id}/files/{file_id}/content(83129d7) - client: send
X-Stainless-Timeoutin seconds (5a272a7) - client: send
X-Stainless-Timeoutin seconds (#1442) (5e5e460) - client: send all configured auth headers (ee01414)
- compat with more runtimes (f743730)
- correct imports (21f2107)
- correctly decode multi-byte characters over multiple chunks (f3d7083)
- docs: correct docstring on responses.stream (1847673)
- ecosystem-tests/bun: bump dependencies (1e52734)
- ecosystem-tests/cloudflare-worker: ignore lib errors for now (157248a)
- ecosystem-tests: correct ecosystem tests setup (6fa0675)
- embeddings: correctly decode base64 data (#1448) (d6b99c8)
- exports: add missing type exports (a816029)
- exports: add missing type exports (#1417) (06c03d7)
- exports: ensure resource imports don't require /index (d028ad7)
- helpers/zod: error on optional + not nullable fields (6e424b5)
- internal: add mts file + crypto shim types (a06deb8)
- internal: clean up undefined File test (da43aa9)
- internal: fix file uploads in node 18 jest (abfff03)
- internal: work around https://github.com/vercel/next.js/issues/76881 (#1427) (84edc62)
- jsr: correct zod config (04e30c0)
- jsr: export realtime helpers (0ea64eb)
- jsr: export zod helpers (77e1180)
- mcp: remove unused tools.ts (752f4f1)
- mcp: remove unused tools.ts (#1445) (4ba9947)
- optimize sse chunk reading off-by-one error (a7effe8)
- optimize sse chunk reading off-by-one error (#1339) (b0b4189)
- package: add chat/completions.ts back in (#1333) (ee34833)
- package: add chat/completions.ts back in (#1333) (1f38cc1)
- parsing: remove tool_calls default empty array (#1341) (40e8dd2)
- parsing: remove tool_calls default empty array (#1341) (6d056bf)
- realtime: call .toString() on WebSocket url (#1324) (6e9444c)
- responses: correct computer use enum value (66fb815)
- responses: correct reasoning output type (1698b95)
- responses: correct reasoning output type (9cb9576)
- responses: correctly add output_text (8ae07cc)
- responses: support streaming retrieve calls (657807c)
- tests/embeddings: avoid cross-realm issue (aceaac0)
- tests: don't rely on OPENAI_API_KEY env variable (087580a)
- tests: manually reset node:buffer File (1d18ed4)
- tests: port tests to new setup (9eb9854)
- tests: stop using node:stream (317a04d)
- threads: remove unused duplicative types (0b77c7c)
- types: export AssistantStream (#1472) (bc492ba)
- types: export ParseableToolsParams (#1486) (3e7c92c)
- types: ignore missing
idin responses pagination (d2be74a) - types: improve responses type names (96ed4db)
- types: improve responses type names (#1392) (4548326)
- zod: warn on optional field usage (#1469) (aea2d12)
Performance Improvements
Chores
- add hash of OpenAPI spec/config inputs to .stats.yml (1b0a94d)
- add hash of OpenAPI spec/config inputs to .stats.yml (48921aa)
- add missing type alias exports (5d75cb9)
- add missing type alias exports (#1390) (f4647cc)
- api: updates to supported Voice IDs (28130c7)
- api: updates to supported Voice IDs (#1424) (fb0e96a)
- ci: add timeout thresholds for CI jobs (5775451)
- ci: add timeout thresholds for CI jobs (939f636)
- ci: bump node version for release workflows (bbf5d45)
- ci: only use depot for staging repos (c59c3b5)
- ci: only use depot for staging repos (214da39)
- ci: run on more branches and use depot runners (e17a4f8)
- ci: run on more branches and use depot runners (ead76fc)
- client: drop support for EOL node versions (a326944)
- client: expose headers on some streaming errors (#1423) (6c93a23)
- client: minor internal fixes (5032c28)
- client: minor internal fixes (6558b7c)
- client: more accurate streaming errors (0c21914)
- client: move misc public files to new
core/directory, deprecate old paths (38c9d54) - client: only accept standard types for file uploads (53e35c8)
- deprecate Assistants API (0be23b9)
- deprecate Assistants API (1726e6b)
- deprecate Assistants API (5b34fcd)
- docs: add missing deprecation warnings (5495529)
- docs: add missing deprecation warnings (995075b)
- docs: grammar improvements (d5d62b0)
- docs: grammar improvements (7761cfb)
- docs: improve docs for withResponse/asResponse (9f4c30b)
- docs: improve migration doc (732d870)
- docs: update zod tool call example, fix azure tests (f18ced8)
- exports: cleaner resource index imports (0da1c16)
- exports: cleaner resource index imports (#1396) (023d106)
- exports: stop using path fallbacks (09af7ff)
- exports: stop using path fallbacks (#1397) (7c3d212)
- fix example types (20f179d)
- improve publish-npm script --latest tag logic (6d3cc5c)
- improve publish-npm script --latest tag logic (1f59811)
- improve publish-npm script --latest tag logic (6207a2a)
- internal: add aliases for Record and Array (8957ff4)
- internal: add aliases for Record and Array (#1443) (1cb66b6)
- internal: add back release workflow (ca6266e)
- internal: add Bun.File ecosystem test (cb4194f)
- internal: add missing return type annotation (00ce31b)
- internal: add missing return type annotation (#1334) (13aab10)
- internal: add proxy ecosystem tests (619711a)
- internal: bump migration cli version (a899c97)
- internal: codegen related update (fa48353)
- internal: codegen related update (c735a3c)
- internal: fix devcontainers setup (873e273)
- internal: fix devcontainers setup (#1343) (9485f5d)
- internal: fix eslint ignores (ad5a9b6)
- internal: fix examples (db23ff3)
- internal: fix examples (#1457) (a100f0a)
- internal: fix format script (3e1ea40)
- internal: fix formatting (6469d53)
- internal: fix lint (45a372c)
- internal: fix release workflows (0e4b982)
- internal: fix release workflows (353349d)
- internal: fix tests failing on node v18 (c54270a)
- internal: fix tests not always being type checked (0266b41)
- internal: improve node 18 shims (ee3f483)
- internal: minor client file refactoring (d1aa00a)
- internal: only run examples workflow in main repo (#1450) (93569f3)
- internal: reduce CI branch coverage (bb39dba)
- internal: reduce CI branch coverage (77fc77f)
- internal: refactor utils (e7fbfbc)
- internal: remove CI condition (ef43345)
- internal: remove CI condition (#1381) (e905c95)
- internal: remove unnecessary todo (b55321e)
- internal: run CI on update-specs branch (9c45ef3)
- internal: run example files in CI (#1357) (1044c48)
- internal: share typescript helpers (2470933)
- internal: skip broken test (5b81f62)
- internal: skip broken test (#1458) (58f4559)
- internal: update @types/bun (d94b41a)
- internal: update release workflows (2cbf49a)
- internal: upload builds and expand CI branch coverage (3dcbe17)
- internal: upload builds and expand CI branch coverage (#1460) (2d45287)
- internal: version bump (b40e830)
- internal: version bump (5123fe0)
- internal: version bump (#1393) (2e49526)
- migration: add beta handling (3508099)
- move ChatModel type to shared (236dbf4)
- package: remove engines (500a82f)
- perf: faster base64 decoding (11b9534)
- Remove deprecated/unused remote spec feature (00bdda3)
- Remove deprecated/unused remote spec feature (71950f6)
- revert temporary version change (47a8350)
- tests: improve enum examples (0b30331)
- tests: improve enum examples (#1454) (15a86c9)
- tests: stop using node-fetch, don't directly upload FormDataFile (ebd464f)
- tests: switch proxy tests to fetchOptions (da6ed5f)
- types: improved go to definition on fetchOptions (f1712cd)
- update next to 14.2.25 for CVE-2025-29927 (1ed4288)
- workaround build errors (e4a7f67)
- workaround build errors (d6b396b)
Documentation
- add examples to tsdocs (e8d2092)
- fix "procesing" -> "processing" in realtime examples (#1406) (dfbdc65)
- migration: mention function renames (eb773ee)
- migration: mention zod helpers error (43b870d)
- readme: fix typo (c44ed98)
- readme: fix typo (0989ddc)
- update URLs from stainlessapi.com to stainless.com (e4e737d)
- update URLs from stainlessapi.com to stainless.com (#1352) (634a209)
Refactors
4.104.0 (2025-05-29)
Full Changelog: v4.103.0...v4.104.0
Features
- api: Config update for pakrym-stream-param (469ad7b)
Bug Fixes
- azure: add /images/edits to deployments endpoints (#1509) (84fc31a)
- client: return binary content from
get /containers/{container_id}/files/{file_id}/content(83129d7)
Chores
4.103.0 (2025-05-22)
Full Changelog: v4.102.0...v4.103.0
Features
- api: new streaming helpers for background responses (1ddd6ff)
4.102.0 (2025-05-21)
Full Changelog: v4.101.0...v4.102.0
Features
- api: add container endpoint (e973476)
4.101.0 (2025-05-21)
Full Changelog: v4.100.0...v4.101.0
Features
- api: new API tools (fb4014f)
Chores
4.100.0 (2025-05-16)
Full Changelog: v4.99.0...v4.100.0
Features
- api: further updates for evals API (3f6f248)
Chores
- internal: version bump (5123fe0)
4.98.0 (2025-05-08)
Full Changelog: v4.97.0...v4.98.0
Features
- api: Add reinforcement fine-tuning api support (4aa7a79)
Chores
Documentation
- add examples to tsdocs (7d841b7)
4.96.0 (2025-04-23)
Full Changelog: v4.95.1...v4.96.0
Features
- api: adding new image model support (a00d331)
Bug Fixes
Chores
- ci: add timeout thresholds for CI jobs (e465063)
4.95.0 (2025-04-16)
Full Changelog: v4.94.0...v4.95.0
Features
- api: add o3 and o4-mini model IDs (4845cd9)
4.92.0 (2025-04-07)
Full Changelog: v4.91.1...v4.92.0
Features
- api: manual updates (891754d)
- api: manual updates (01e5546)
- api: manual updates (f38dbf3)
- api: manual updates (1f12253)
Bug Fixes
- api: improve type resolution when importing as a package (#1444) (4aa46d6)
- client: send
X-Stainless-Timeoutin seconds (#1442) (aa4206c) - embeddings: correctly decode base64 data (#1448) (58128f7)
- mcp: remove unused tools.ts (#1445) (520a8fa)
Chores
4.91.1 (2025-04-01)
Full Changelog: v4.91.0...v4.91.1
Bug Fixes
- docs: correct docstring on responses.stream (1c8cd6a)
Chores
- Remove deprecated/unused remote spec feature (ce3dfa8)
4.91.0 (2025-03-31)
Full Changelog: v4.90.0...v4.91.0
Features
- api: add
get /responses/{response_id}/input_itemsendpoint (ef0e0ac)
Performance Improvements
4.90.0 (2025-03-27)
Full Changelog: v4.89.1...v4.90.0
Features
- api: add
get /chat/completionsendpoint (2d6710a)
Bug Fixes
- audio: correctly handle transcription streaming (2a9b603)
- internal: work around https://github.com/vercel/next.js/issues/76881 (#1427) (b467e94)
Chores
4.87.3 (2025-03-11)
Full Changelog: v4.87.2...v4.87.3
Bug Fixes
- responses: correct reasoning output type (2abef57)
4.87.2 (2025-03-11)
Full Changelog: v4.87.1...v4.87.2
Bug Fixes
- responses: correctly add output_text (4ceb5cc)
4.87.0 (2025-03-11)
Full Changelog: v4.86.2...v4.87.0
Features
- api: add /v1/responses and built-in tools (119b584)
4.84.0 (2025-02-12)
Full Changelog: v4.83.0...v4.84.0
Features
Bug Fixes
- api: add missing reasoning effort + model enums (#1302) (14c55c3)
- assistants: handle
thread.run.incompleteevent (7032cc4) - correctly decode multi-byte characters over multiple chunks (#1316) (dd776c4)
Chores
- internal: remove segfault-handler dependency (3521ca3)
Documentation
- readme: cleanup into multiple files (da94424)
4.76.3 (2024-12-13)
Full Changelog: v4.76.2...v4.76.3
Chores
- internal: better ecosystem test debugging (86fc0a8)
Documentation
4.73.0 (2024-11-20)
Full Changelog: v4.72.0...v4.73.0
Features
- api: add gpt-4o-2024-11-20 model (#1201) (0feeafd)
- bump model in all example snippets to gpt-4o (6961c37)
Bug Fixes
Chores
- client: drop unused devDependency (#1191) (8ee6c03)
- internal: spec update (#1195) (12f9334)
- internal: use reexports not destructuring (#1181) (f555dd6)
Documentation
4.72.0 (2024-11-12)
Full Changelog: v4.71.1...v4.72.0
Features
- add back deno runtime testing without type checks (1626cf5)
Chores
4.70.3 (2024-11-04)
Full Changelog: v4.70.2...v4.70.3
Bug Fixes
- change streaming helper imports to be relative (e73b7cf)
4.61.0 (2024-09-13)
Full Changelog: v4.60.1...v4.61.0
Bug Fixes
- client: partial parsing update to handle strings (46e8eb6)
- examples: handle usage chunk in tool call streaming (#1068) (e4188c4)
Chores
- examples: add a small delay to tool-calls example streaming (a3fc659)
Documentation
4.57.1 (2024-09-03)
Full Changelog: v4.57.0...v4.57.1
Bug Fixes
- assistants: correctly accumulate tool calls when streaming (#1031) (d935ad3)
- client: correct File construction from node-fetch Responses (#1029) (22ebdc2)
- runTools without stream should not emit user message events (#1005) (22ded4d)
Chores
- internal/tests: workaround bug in recent types/node release (3c7bdfd)
4.56.0 (2024-08-16)
Full Changelog: v4.55.9...v4.56.0
Features
- api: add chatgpt-4o-latest model (edc4398)
4.55.2 (2024-08-08)
Full Changelog: v4.55.1...v4.55.2
Bug Fixes
- helpers/zod: add
extract-to-rootref strategy (ef3c73c) - helpers/zod: add
nullableStrategyoption (ad89892) - helpers/zod: correct logic for adding root schema to definitions (e4a247a)
Chores
4.55.1 (2024-08-07)
Full Changelog: v4.55.0...v4.55.1
Bug Fixes
- helpers/zod: correct schema generation for recursive schemas (cb54d93)
Chores
- api: remove old
AssistantResponseFormattype (#967) (9fd94bf) - internal: update test snapshots (bceea60)
- vendor/zodJsonSchema: add option to duplicate top-level ref (84b8a38)
Documentation
- examples: add UI generation example script (c75c017)
4.55.0 (2024-08-06)
Full Changelog: v4.54.0...v4.55.0
Features
- api: add structured outputs support (573787c)
4.54.0 (2024-08-02)
Full Changelog: v4.53.2...v4.54.0
Features
- extract out
ImageModel,AudioModel,SpeechModel(#964) (1edf957) - make enums not nominal (#965) (0dd0cd1)
Chores
- ci: correctly tag pre-release npm packages (#963) (f1a4a68)
- internal: add constant for default timeout (#960) (55c01f4)
- internal: cleanup event stream helpers (#950) (8f49956)
Documentation
4.30.0 (2024-03-28)
Full Changelog: v4.29.2...v4.30.0
Features
Bug Fixes
- client: correctly send deno version header (#736) (b7ea175)
- example: correcting example (#739) (a819551)
- handle process.env being undefined in debug func (#733) (2baa149)
- internal: make toFile use input file's options (#727) (15880d7)
Chores
Documentation
4.28.5 (2024-03-13)
Full Changelog: v4.28.4...v4.28.5
Bug Fixes
- ChatCompletionStream: abort on async iterator break and handle errors (#699) (ac417a2)
- streaming: correctly handle trailing new lines in byte chunks (#708) (4753be2)
Chores
- api: update docs (#703) (e1db98b)
- docs: mention install from git repo (#700) (c081bdb)
- fix error handler in readme (#704) (4ff790a)
- internal: add explicit type annotation to decoder (#712) (d728e99)
- types: fix accidental exposure of Buffer type to cloudflare (#709) (0323ecb)
Documentation
4.28.4 (2024-02-28)
Full Changelog: v4.28.3...v4.28.4
Features
Chores
- ci: update actions/setup-node action to v4 (#685) (f2704d5)
- internal: fix ecosystem tests (#693) (616624d)
- types: extract run status to a named type (#686) (b3b3b8e)
- update @types/react to 18.2.58, @types/react-dom to 18.2.19 (#688) (2a0d0b1)
- update dependency @types/node to v20.11.20 (#690) (4ca005b)
- update dependency @types/ws to v8.5.10 (#683) (a617268)
- update dependency next to v13.5.6 (#689) (abb3b66)
4.27.1 (2024-02-12)
Full Changelog: v4.27.0...v4.27.1
4.26.1 (2024-02-05)
Full Changelog: v4.26.0...v4.26.1
Chores
- internal: enable building when git installed (#657) (8c80a7d)
- internal: re-order pagination import (#656) (21ae54e)
- internal: support pre-release versioning (#653) (0c3859f)
- test: add delay between ecosystem tests retry (#651) (6a4cc5c)
Documentation
4.26.0 (2024-01-25)
Full Changelog: v4.25.0...v4.26.0
Features
Chores
- internal: add internal helpers & improve build scripts (#643) (9392f50)
- internal: adjust ecosystem-tests logging in CI (#646) (156084b)
- internal: don't re-export streaming type (#648) (4c4be94)
- internal: fix binary files (#645) (e1fbc39)
- internal: minor streaming updates (#647) (2f073e4)
- internal: pin deno version (#649) (7e4b903)
4.24.2 (2024-01-08)
Full Changelog: v4.24.1...v4.24.2
Bug Fixes
- headers: always send lowercase headers and strip undefined (BREAKING in rare cases) (#608) (4ea159f)
Chores
- add .keep files for examples and custom code directories (#612) (5e0f733)
- internal: bump license (#605) (045ee74)
- internal: improve type signatures (#609) (e1ccc82)
Documentation
4.24.1 (2023-12-22)
Full Changelog: v4.24.0...v4.24.1
Bug Fixes
Documentation
- messages: improvements to helpers reference + typos (#595) (96a59b9)
- reformat README.md (#592) (8ffc7f8)
Refactors
4.24.0 (2023-12-19)
Full Changelog: v4.23.0...v4.24.0
Features
Chores
- deps: update dependency start-server-and-test to v2.0.3 (#580) (8e1aca1)
- deps: update dependency ts-jest to v29.1.1 (#578) (a6edb7b)
- deps: update jest (#582) (e49e471)
- internal: bump deps (#583) (2e07b4c)
- internal: update deps (#581) (7b690dc)
Documentation
4.21.0 (2023-12-11)
Full Changelog: v4.20.1...v4.21.0
Features
Bug Fixes
- correct some runTools behavior and deprecate runFunctions (#562) (f5cdd0f)
- prevent 400 when using runTools/runFunctions with Azure OpenAI API (#544) (735d9b8)
Documentation
Build System
4.19.1 (2023-11-20)
Full Changelog: v4.19.0...v4.19.1
4.17.3 (2023-11-09)
Full Changelog: v4.17.2...v4.17.3
4.16.2 (2023-11-08)
Full Changelog: v4.16.1...v4.16.2
Bug Fixes
- api: accidentally required params, add new models & other fixes (#463) (1cb403e)
- api: update embedding response object type (#466) (53b7e25)
- asssitant_deleted -> assistant_deleted (#452) (ef89bd7)
- types: ensure all code paths return a value (#458) (19402c3)
Chores
Documentation
4.16.0 (2023-11-06)
Full Changelog: v4.15.4...v4.16.0
Features
- api: releases from DevDay; assistants, multimodality, tools, dall-e-3, tts, and more (#433) (fb92f5e)
Bug Fixes
Documentation
4.12.2 (2023-10-16)
Full Changelog: v4.12.1...v4.12.2
Bug Fixes
- client: correctly handle errors during streaming (#377) (09233b1)
- client: correctly handle errors during streaming (#379) (9ced580)
- improve status code in error messages (#381) (68dfb17)
Chores
- add case insensitive get header function (#373) (b088998)
- internal: add debug logs for stream responses (#380) (689db0b)
- show deprecation notice on re-export (#368) (b176703)
- update comment (#376) (a06c685)
- update comment (#378) (b04031d)
Refactors
4.12.0 (2023-10-11)
Full Changelog: v4.11.1...v4.12.0
Features
- api: remove
content_filterstop_reason and update documentation (#352) (a4b401e) - re-export chat completion types at the top level, and work around webpack limitations (#365) (bb815d0)
Bug Fixes
Chores
4.11.1 (2023-10-03)
Full Changelog: v4.11.0...v4.11.1
4.11.0 (2023-09-29)
Full Changelog: v4.10.0...v4.11.0
Features
- client: handle retry-after with a date (#340) (b6dd384)
- package: export a root error type (#338) (462bcda)
Bug Fixes
Chores
4.5.0 (2023-09-06)
Full Changelog: v4.4.0...v4.5.0
Features
- client: add files.waitForProcessing() method (#292) (ef59010)
- fixes tests where an array has to have unique enum values (#290) (a10b895)
- make docs more readable by eliminating unnecessary escape sequences (#287) (a068043)
Bug Fixes
- client: fix TS errors that appear when users Go to Source in VSCode (#281) (8dc59bc), closes #249
- client: handle case where the client is instantiated with a undefined baseURL (#285) (5095cf3)
- client: use explicit file extensions in _shims imports (#276) (16fe929)
Documentation
4.4.0 (2023-09-01)
Full Changelog: v4.3.1...v4.4.0
Features
- package: add Bun export map (#269) (16f239c)
- re-export chat completion types at the top level (#268) (1a71a39)
- tests: unskip multipart form data tests (#275) (47d3e18)
- types: fix ambiguous auto-import for chat completions params (#266) (19c99fb)
Bug Fixes
Version 4 is a complete rewrite of the SDK, offering a huge set of improvements.
What's new
- Streaming support for completions and chat completions!
- Improved typescript types for responses & errors
- Support for ESM, CloudFlare Workers, Vercel edge functions, Deno, and more
- Better file upload API for Whisper, fine-tune files, & DALL·E images
- Improved error handling through automatic retries & error classes
- Improved latency through reusing TCP connections
- Simpler initialization logic
Getting started
npm install openai@4.0.0
Migration guide
Add support for function calling in the Chat Completions API
Announcement: https://openai.com/blog/function-calling-and-other-api-updates Documentation: https://platform.openai.com/docs/guides/gpt/function-calling
Added new ChatGPT and Whisper APIs.
Breaking changes in this release:
- The function signature of
createCompletion(engineId, params)changed tocreateCompletion(params). The value previously passed in as theengineIdargument should now be passed in asmodelin the params object (e.g.createCompletion({ model: "text-davinci-002, ... }))