openai-node

The official Node.js / Typescript library for the OpenAI API

APACHE-2.0 License

Downloads
9.2M
Stars
6.9K
Committers
23

Bot releases are visible (Hide)

openai-node - v4.6.0

Published by stainless-bot about 1 year ago

4.6.0 (2023-09-08)

Full Changelog: v4.5.0...v4.6.0

Features

  • types: extract ChatCompletionRole enum to its own type (#298) (5893e37)

Bug Fixes

  • fix module not found errors in Vercel edge (#300) (47c79fe)
openai-node - v4.5.0

Published by stainless-bot about 1 year ago

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

openai-node - v4.4.0

Published by stainless-bot about 1 year ago

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

  • revert import change which triggered circular import bug in webpack (#274) (6534e36)
openai-node - v4.3.1

Published by stainless-bot about 1 year ago

4.3.1 (2023-08-29)

Full Changelog: v4.3.0...v4.3.1

Bug Fixes

  • types: improve getNextPage() return type (#262) (245a984)

Chores

  • ci: setup workflows to create releases and release PRs (#259) (290908c)
openai-node - v4.3.0

Published by stainless-bot about 1 year ago

4.3.0 (2023-08-27)

Features

  • client: add auto-pagination to fine tuning list endpoints (#254) (5f89c5e)
  • cli: rewrite in JS for better compatibility (#244) (d8d7c05)

Bug Fixes

  • stream: declare Stream.controller as public (#252) (81e5de7)

Documentation

Chores

openai-node - v4.1.0

Published by schnerd about 1 year ago

openai-node - v4.2.0

Published by stainless-bot about 1 year ago

4.2.0 (2023-08-23)

Features

Chores

  • internal: export HeadersInit type shim (#241) (cf9f672)
openai-node - v4.0.1

Published by schnerd about 1 year ago

openai-node - v4.0.0

Published by schnerd about 1 year ago

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 [email protected]

Migration guide

➡️ View the v3 to v4 migration guide

openai-node - v4.0.0-beta.12

Published by schnerd about 1 year ago

v4.0.0 Beta – Learn more

openai-node - v4.0.0-beta.11

Published by schnerd about 1 year ago

v4.0.0 Beta – Learn more

openai-node - v4.0.0-beta.10

Published by schnerd about 1 year ago

v4.0.0 Beta – Learn more

openai-node - v4.0.0-beta.9

Published by schnerd about 1 year ago

v4.0.0 Beta – Learn more

openai-node - v4.0.0-beta.8

Published by schnerd about 1 year ago

v4.0.0 Beta – Learn more

openai-node - v4.0.0-beta.7

Published by schnerd about 1 year ago

v4.0.0 Beta – Learn more

openai-node - v4.0.0-beta.6

Published by schnerd over 1 year ago

v4.0.0 Beta – Learn more

openai-node - v4.0.0-beta.5

Published by schnerd over 1 year ago

v4.0.0 Beta – Learn more

openai-node - v4.0.0-beta.4

Published by schnerd over 1 year ago

v4.0.0 Beta – Learn more

openai-node - v4.0.0-beta.3

Published by schnerd over 1 year ago

v4.0.0 Beta – Learn more

openai-node - v4.0.0-beta.2

Published by schnerd over 1 year ago

v4.0.0 Beta – Learn more