Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: openai/openai-node
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.27.1
Choose a base ref
...
head repository: openai/openai-node
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.28.0
Choose a head ref
  • 2 commits
  • 8 files changed
  • 1 contributor

Commits on Feb 13, 2024

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    0ab363d View commit details
  2. release: 4.28.0

    stainless-bot committed Feb 13, 2024
    Copy the full SHA
    e33a2a8 View commit details
Showing with 20 additions and 5 deletions.
  1. +1 −1 .release-please-manifest.json
  2. +8 −0 CHANGELOG.md
  3. +1 −1 README.md
  4. +1 −1 build-deno
  5. +1 −1 package.json
  6. +6 −0 src/resources/chat/completions.ts
  7. +1 −1 src/version.ts
  8. +1 −0 tests/api-resources/chat/completions.test.ts
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "4.27.1"
".": "4.28.0"
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 4.28.0 (2024-02-13)

Full Changelog: [v4.27.1...v4.28.0](https://github.com/openai/openai-node/compare/v4.27.1...v4.28.0)

### Features

* **api:** updates ([#669](https://github.com/openai/openai-node/issues/669)) ([e1900f9](https://github.com/openai/openai-node/commit/e1900f97ee3f4758d47a7eb4659e30abe3750c99))

## 4.27.1 (2024-02-12)

Full Changelog: [v4.27.0...v4.27.1](https://github.com/openai/openai-node/compare/v4.27.0...v4.27.1)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ You can import in Deno via:
<!-- x-release-please-start-version -->

```ts
import OpenAI from 'https://deno.land/x/openai@v4.27.1/mod.ts';
import OpenAI from 'https://deno.land/x/openai@v4.28.0/mod.ts';
```

<!-- x-release-please-end -->
2 changes: 1 addition & 1 deletion build-deno
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ This is a build produced from https://github.com/openai/openai-node – please g
Usage:
\`\`\`ts
import OpenAI from "https://deno.land/x/openai@v4.27.1/mod.ts";
import OpenAI from "https://deno.land/x/openai@v4.28.0/mod.ts";
const client = new OpenAI();
\`\`\`
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openai",
"version": "4.27.1",
"version": "4.28.0",
"description": "The official TypeScript library for the OpenAI API",
"author": "OpenAI <support@openai.com>",
"types": "dist/index.d.ts",
6 changes: 6 additions & 0 deletions src/resources/chat/completions.ts
Original file line number Diff line number Diff line change
@@ -708,6 +708,12 @@ export interface ChatCompletionCreateParamsBase {
*/
functions?: Array<ChatCompletionCreateParams.Function>;

/**
* An unique identifier to a custom instance to execute the request. The requesting
* organization is required to have access to the instance.
*/
instance_id?: string | null;

/**
* Modify the likelihood of specified tokens appearing in the completion.
*
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '4.27.1'; // x-release-please-version
export const VERSION = '4.28.0'; // x-release-please-version
1 change: 1 addition & 0 deletions tests/api-resources/chat/completions.test.ts
Original file line number Diff line number Diff line change
@@ -30,6 +30,7 @@ describe('resource completions', () => {
frequency_penalty: -2,
function_call: 'none',
functions: [{ description: 'string', name: 'string', parameters: { foo: 'bar' } }],
instance_id: 'string',
logit_bias: { foo: 0 },
logprobs: true,
max_tokens: 0,