Completions Versions Save

Node.js SDK for interacting with OpenAI Chat API.

v2.2.0

10 months ago

2.2.0 (2023-06-27)

Bug Fixes

Features

v2.1.0

10 months ago

2.1.0 (2023-06-27)

Bug Fixes

Features

  • add the ability to return structured data (dcdb5c4)
  • statically type the output (138d41b)

v2.0.0

10 months ago

2.0.0 (2023-06-26)

Bug Fixes

Code Refactoring

Features

  • allow to call specific function (1bb0904)
  • handle function calls (f3743c5)
  • simplify sendMessage options (dcd3256)

BREAKING CHANGES

  • funciton calls are handled by the createChat abstraction Just define the function itself inside the functions, e.g.
{
  name: "get_current_weather",
  description: "Get the current weather in a given location",
  parameters: {
    type: "object",
    properties: {
      location: {
        type: "string",
        description: "The city and state, e.g. San Francisco, CA",
      },
      unit: { type: "string", enum: ["celsius", "fahrenheit"] },
    },
    required: ["location"],
  },
+  function: {
+    location: "Albuquerque",
+    temperature: "72",
+    unit: "fahrenheit",
+    forecast: ["sunny", "windy"],
+  },
},
  • require that sendMessage second parameter is an object

v1.4.3

10 months ago

1.4.3 (2023-06-21)

Bug Fixes

v1.4.2

10 months ago

1.4.2 (2023-06-21)

Bug Fixes

v1.4.1

11 months ago

1.4.1 (2023-06-16)

Bug Fixes

  • chat subtest 2 reliability (13b0ffc)

v1.4.0

11 months ago

1.4.0 (2023-06-11)

Features

v1.3.0

11 months ago

1.3.0 (2023-06-02)

Features

v1.2.0

11 months ago

1.2.0 (2023-06-02)

Features

  • show how to cancel responses (f54b6d8)

v1.1.1

11 months ago

1.1.1 (2023-06-02)

Bug Fixes