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 hidden (Show)

openai-node - v4.1.0

Published by schnerd about 1 year ago

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 about 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

openai-node - v4.0.0-beta.1

Published by schnerd over 1 year ago

v4.0.0 Beta – Learn more

openai-node - v4.0.0-beta.0

Published by schnerd over 1 year ago

v4.0.0 Beta – Learn more

openai-node - v3.3.0

Published by schnerd over 1 year ago

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

openai-node - v3.2.0

Published by schnerd over 1 year ago

Added new ChatGPT and Whisper APIs.

openai-node -

Published by jeevnayak over 2 years ago

Breaking changes in this release:

  • The function signature of createCompletion(engineId, params) changed to createCompletion(params). The value previously passed in as the engineId argument should now be passed in as model in the params object (e.g. createCompletion({ model: "text-davinci-002, ... }))