Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: 4.55.5 #988

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.55.4"
".": "4.55.5"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 68
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-97797a9363b9960b5f2fbdc84426a2b91e75533ecd409fe99e37c231180a4339.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-285bce7dcdae7eea5fe84a8d6e5af2c1473d65ea193109370fb2257851eef7eb.yml
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 4.55.5 (2024-08-12)

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

### Chores

* **examples:** minor formatting changes ([#987](https://github.com/openai/openai-node/issues/987)) ([8e6b615](https://github.com/openai/openai-node/commit/8e6b615ada09fa4e50dc8e0b5decf662eed19856))
* sync openapi url ([#989](https://github.com/openai/openai-node/issues/989)) ([02ff1c5](https://github.com/openai/openai-node/commit/02ff1c55b5eefd8b6193ba2bf10dd5515945bd7a))

## 4.55.4 (2024-08-09)

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

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

<!-- x-release-please-end -->
Expand Down
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.55.4",
"version": "4.55.5",
"description": "The official TypeScript library for the OpenAI API",
"author": "OpenAI <support@openai.com>",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-deno
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,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.55.4/mod.ts";
import OpenAI from "https://deno.land/x/openai@v4.55.5/mod.ts";

const client = new OpenAI();
\`\`\`
Expand Down
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.55.4'; // x-release-please-version
export const VERSION = '4.55.5'; // x-release-please-version
2 changes: 1 addition & 1 deletion tests/api-resources/beta/assistants.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('resource assistants', () => {
file_search: {
vector_store_ids: ['string'],
vector_stores: [
{ file_ids: ['string', 'string', 'string'], chunking_strategy: { type: 'auto' }, metadata: {} },
{ chunking_strategy: { type: 'auto' }, file_ids: ['string', 'string', 'string'], metadata: {} },
],
},
},
Expand Down
12 changes: 6 additions & 6 deletions tests/api-resources/beta/threads/runs/runs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ describe('resource runs', () => {
additional_instructions: 'additional_instructions',
additional_messages: [
{
role: 'user',
content: 'string',
role: 'user',
attachments: [
{
file_id: 'file_id',
Expand Down Expand Up @@ -57,8 +57,8 @@ describe('resource runs', () => {
metadata: {},
},
{
role: 'user',
content: 'string',
role: 'user',
attachments: [
{
file_id: 'file_id',
Expand Down Expand Up @@ -88,8 +88,8 @@ describe('resource runs', () => {
metadata: {},
},
{
role: 'user',
content: 'string',
role: 'user',
attachments: [
{
file_id: 'file_id',
Expand Down Expand Up @@ -227,9 +227,9 @@ describe('resource runs', () => {
test('submitToolOutputs: required and optional params', async () => {
const response = await client.beta.threads.runs.submitToolOutputs('thread_id', 'run_id', {
tool_outputs: [
{ tool_call_id: 'tool_call_id', output: 'output' },
{ tool_call_id: 'tool_call_id', output: 'output' },
{ tool_call_id: 'tool_call_id', output: 'output' },
{ output: 'output', tool_call_id: 'tool_call_id' },
{ output: 'output', tool_call_id: 'tool_call_id' },
{ output: 'output', tool_call_id: 'tool_call_id' },
],
stream: false,
});
Expand Down
18 changes: 9 additions & 9 deletions tests/api-resources/beta/threads/threads.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ describe('resource threads', () => {
{
messages: [
{
role: 'user',
content: 'string',
role: 'user',
attachments: [
{
file_id: 'file_id',
Expand Down Expand Up @@ -65,8 +65,8 @@ describe('resource threads', () => {
metadata: {},
},
{
role: 'user',
content: 'string',
role: 'user',
attachments: [
{
file_id: 'file_id',
Expand Down Expand Up @@ -96,8 +96,8 @@ describe('resource threads', () => {
metadata: {},
},
{
role: 'user',
content: 'string',
role: 'user',
attachments: [
{
file_id: 'file_id',
Expand Down Expand Up @@ -134,8 +134,8 @@ describe('resource threads', () => {
vector_store_ids: ['string'],
vector_stores: [
{
file_ids: ['string', 'string', 'string'],
chunking_strategy: { type: 'auto' },
file_ids: ['string', 'string', 'string'],
metadata: {},
},
],
Expand Down Expand Up @@ -220,8 +220,8 @@ describe('resource threads', () => {
thread: {
messages: [
{
role: 'user',
content: 'string',
role: 'user',
attachments: [
{
file_id: 'file_id',
Expand Down Expand Up @@ -251,8 +251,8 @@ describe('resource threads', () => {
metadata: {},
},
{
role: 'user',
content: 'string',
role: 'user',
attachments: [
{
file_id: 'file_id',
Expand Down Expand Up @@ -282,8 +282,8 @@ describe('resource threads', () => {
metadata: {},
},
{
role: 'user',
content: 'string',
role: 'user',
attachments: [
{
file_id: 'file_id',
Expand Down Expand Up @@ -313,16 +313,16 @@ describe('resource threads', () => {
metadata: {},
},
],
metadata: {},
tool_resources: {
code_interpreter: { file_ids: ['string', 'string', 'string'] },
file_search: {
vector_store_ids: ['string'],
vector_stores: [
{ file_ids: ['string', 'string', 'string'], chunking_strategy: { type: 'auto' }, metadata: {} },
{ chunking_strategy: { type: 'auto' }, file_ids: ['string', 'string', 'string'], metadata: {} },
],
},
},
metadata: {},
},
tool_choice: 'none',
tool_resources: {
Expand Down
8 changes: 4 additions & 4 deletions tests/api-resources/chat/completions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('resource completions', () => {
model: 'gpt-4o',
frequency_penalty: -2,
function_call: 'none',
functions: [{ description: 'description', name: 'name', parameters: { foo: 'bar' } }],
functions: [{ name: 'name', description: 'description', parameters: { foo: 'bar' } }],
logit_bias: { foo: 0 },
logprobs: true,
max_tokens: 0,
Expand All @@ -46,16 +46,16 @@ describe('resource completions', () => {
tool_choice: 'none',
tools: [
{
function: { name: 'name', description: 'description', parameters: { foo: 'bar' }, strict: true },
type: 'function',
function: { description: 'description', name: 'name', parameters: { foo: 'bar' }, strict: true },
},
{
function: { name: 'name', description: 'description', parameters: { foo: 'bar' }, strict: true },
type: 'function',
function: { description: 'description', name: 'name', parameters: { foo: 'bar' }, strict: true },
},
{
function: { name: 'name', description: 'description', parameters: { foo: 'bar' }, strict: true },
type: 'function',
function: { description: 'description', name: 'name', parameters: { foo: 'bar' }, strict: true },
},
],
top_logprobs: 0,
Expand Down
6 changes: 3 additions & 3 deletions tests/api-resources/fine-tuning/jobs/jobs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,26 @@ describe('resource jobs', () => {
type: 'wandb',
wandb: {
project: 'my-wandb-project',
name: 'name',
entity: 'entity',
name: 'name',
tags: ['custom-tag', 'custom-tag', 'custom-tag'],
},
},
{
type: 'wandb',
wandb: {
project: 'my-wandb-project',
name: 'name',
entity: 'entity',
name: 'name',
tags: ['custom-tag', 'custom-tag', 'custom-tag'],
},
},
{
type: 'wandb',
wandb: {
project: 'my-wandb-project',
name: 'name',
entity: 'entity',
name: 'name',
tags: ['custom-tag', 'custom-tag', 'custom-tag'],
},
},
Expand Down
6 changes: 3 additions & 3 deletions tests/api-resources/images.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('resource images', () => {
model: 'dall-e-2',
n: 1,
response_format: 'url',
size: '1024x1024',
size: '256x256',
user: 'user-1234',
});
});
Expand All @@ -55,7 +55,7 @@ describe('resource images', () => {
model: 'dall-e-2',
n: 1,
response_format: 'url',
size: '1024x1024',
size: '256x256',
user: 'user-1234',
});
});
Expand All @@ -78,7 +78,7 @@ describe('resource images', () => {
n: 1,
quality: 'standard',
response_format: 'url',
size: '1024x1024',
size: '256x256',
style: 'vivid',
user: 'user-1234',
});
Expand Down