openai-node

The official Node.js / Typescript library for the OpenAI API (by openai)

Openai-node Alternatives

Similar projects and alternatives to openai-node

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better openai-node alternative or higher similarity.

openai-node reviews and mentions

Posts with mentions or reviews of openai-node. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-24.
  • The Stainless SDK Generator
    10 projects | news.ycombinator.com | 24 Apr 2024
    We try to keep it to a minimum, especially in JS (though we have some nice improvements coming soon when we deprecate node-fetch in favor of built-in fetch). The package sizes aren't tiny because we include thorough types and sourcemaps, but the bundle sizes are fairly tidy.

    Here's an example of a typical RESTful endpoint (Lithic's `client.cards.create()`:

    https://github.com/lithic-com/lithic-node/blob/36d4a6a70597e...

    Here are some example repos produced by Stainless:

    1. https://github.com/openai/openai-node

  • OpenAI: Streaming is now available in the Assistants API
    2 projects | news.ycombinator.com | 14 Mar 2024
    Have you seen/tried the `.runTools()` helper?

    Docs: https://github.com/openai/openai-node?tab=readme-ov-file#aut...

    Example: https://github.com/openai/openai-node/blob/bb4bce30ff1bfb06d...

    (if what you're fundamentally trying to do is really just get JSON out, then I can see how json_mode is still easier).

  • OpenAI has Text to Speech Support now!
    5 projects | dev.to | 27 Jan 2024
    And so, I impulsively upgraded to the latest version of openai (I guess not anymore) without the fear of getting cut by cutting edge 😝 and got it working for some random text
  • AI for Web Devs: Faster Responses with HTTP Streaming
    2 projects | dev.to | 16 Jan 2024
    UPDATE 2023/11/15: I used fetch and custom streams because at the time of writing, the openai module on NPM did not properly support streaming responses. That issue has been fixed, and I think a better solution would be to use that module and pipe their data through a TransformStream to send to the client. That version is not reflected here.
  • AI for Web Devs: Your First API Request to OpenAI
    5 projects | dev.to | 16 Jan 2024
    You may notice the JavaScript package available on NPM called openai. We will not be using this, as it doesn’t quite support some things we’ll want to do, that fetch can.
  • Building and deploying AI agents with E2B
    3 projects | dev.to | 5 Jan 2024
    openai - For using the GPT-3.5-turbo model to answer the questions
  • Aiconfig – source control format for gen AI prompts, models and settings
    4 projects | news.ycombinator.com | 17 Nov 2023
    We have a bit of context about this in the readme: https://github.com/lastmile-ai/aiconfig#what-problem-it-solv.... The main issue with keeping it in code is that it tangles application code with prompts and model-specific logic.

    That makes it hard to evaluate the genAI parts of the application, and also iterating on the prompts is not as straightforward as opening up a playground.

    Having the config be the source of truth let's you connect it to your application code (and still source controlled), lets you evaluate the config as the AI artifact, and also lets you open the config in a playground to edit and iterate.

    For example, compare how much simpler openai function calling becomes with storing the stuff as a config: https://github.com/lastmile-ai/aiconfig/blob/main/cookbooks/... vs using vanilla openai directly (https://github.com/openai/openai-node/blob/v4/examples/funct...)

  • Build a Chatbot With OpenAI, Vercel AI and Xata
    2 projects | dev.to | 13 Oct 2023
    In your preferred serverless environment, make sure you install the OpenAI API Library and Vercel AI library to get started.
  • TypeScript NPM Packages Done Right
    6 projects | news.ycombinator.com | 24 Sep 2023
    A package I help maintain was released about a month ago, and we've had bug reports related to this: https://github.com/openai/openai-node/issues/304#issuecommen...

    We simply chose to mark Jest 27 as unsupported in this case, but it did cost some debugging time.

  • openai-node v4.0.0
    1 project | news.ycombinator.com | 16 Aug 2023
  • A note from our sponsor - WorkOS
    workos.com | 30 Apr 2024
    The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →

Stats

Basic openai-node repo stats
20
6,895
9.5
2 days ago

openai/openai-node is an open source project licensed under Apache License 2.0 which is an OSI approved license.

The primary programming language of openai-node is TypeScript.


Sponsored
The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com