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.38.4 #797

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.38.3"
".": "4.38.4"
}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 4.38.4 (2024-04-24)

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

### Bug Fixes

* **api:** change timestamps to unix integers ([#798](https://github.com/openai/openai-node/issues/798)) ([7271a6c](https://github.com/openai/openai-node/commit/7271a6cdc7d37151d2cae18fdd20b87d97624a84))
* **docs:** doc improvements ([#796](https://github.com/openai/openai-node/issues/796)) ([49fcc86](https://github.com/openai/openai-node/commit/49fcc86b44958795a6f5e0901f369653dfbcc637))

## 4.38.3 (2024-04-22)

Full Changelog: [v4.38.2...v4.38.3](https://github.com/openai/openai-node/compare/v4.38.2...v4.38.3)
Expand Down
4 changes: 2 additions & 2 deletions 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/[email protected].3/mod.ts';
import OpenAI from 'https://deno.land/x/[email protected].4/mod.ts';
```

<!-- x-release-please-end -->
Expand Down Expand Up @@ -119,7 +119,7 @@ More information on the lifecycle of a Run can be found in the [Run Lifecycle Do

### Bulk Upload Helpers

When creating an interacting with vector stores, you can use the polling helpers to monitor the status of operations.
When creating and interacting with vector stores, you can use the polling helpers to monitor the status of operations.
For convenience, we also provide a bulk upload helper to allow you to simultaneously upload several files at once.

```ts
Expand Down
2 changes: 1 addition & 1 deletion build-deno
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected].3/mod.ts";
import OpenAI from "https://deno.land/x/[email protected].4/mod.ts";

const client = new OpenAI();
\`\`\`
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.38.3",
"version": "4.38.4",
"description": "The official TypeScript library for the OpenAI API",
"author": "OpenAI <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
23 changes: 12 additions & 11 deletions src/resources/batches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export interface Batch {
/**
* The Unix timestamp (in seconds) for when the batch was created.
*/
created_at: string;
created_at: number;

/**
* The OpenAI API endpoint used by the batch.
Expand Down Expand Up @@ -90,17 +90,17 @@ export interface Batch {
/**
* The Unix timestamp (in seconds) for when the batch was cancelled.
*/
cancelled_at?: string;
cancelled_at?: number;

/**
* The Unix timestamp (in seconds) for when the batch started cancelling.
*/
cancelling_at?: string;
cancelling_at?: number;

/**
* The Unix timestamp (in seconds) for when the batch was completed.
*/
completed_at?: string;
completed_at?: number;

/**
* The ID of the file containing the outputs of requests with errors.
Expand All @@ -112,27 +112,27 @@ export interface Batch {
/**
* The Unix timestamp (in seconds) for when the batch expired.
*/
expired_at?: string;
expired_at?: number;

/**
* The Unix timestamp (in seconds) for when the batch will expire.
*/
expires_at?: string;
expires_at?: number;

/**
* The Unix timestamp (in seconds) for when the batch failed.
*/
failed_at?: string;
failed_at?: number;

/**
* The Unix timestamp (in seconds) for when the batch started finalizing.
*/
finalizing_at?: string;
finalizing_at?: number;

/**
* The Unix timestamp (in seconds) for when the batch started processing.
*/
in_progress_at?: string;
in_progress_at?: number;

/**
* Set of 16 key-value pairs that can be attached to an object. This can be useful
Expand Down Expand Up @@ -225,8 +225,9 @@ export interface BatchCreateParams {
* See [upload file](https://platform.openai.com/docs/api-reference/files/create)
* for how to upload a file.
*
* Your input file must be formatted as a JSONL file, and must be uploaded with the
* purpose `batch`.
* Your input file must be formatted as a
* [JSONL file](https://platform.openai.com/docs/api-reference/batch/requestInput),
* and must be uploaded with the purpose `batch`.
*/
input_file_id: string;

Expand Down
6 changes: 6 additions & 0 deletions src/resources/beta/vector-stores/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,12 @@ export interface VectorStoreFile {
*/
status: 'in_progress' | 'completed' | 'cancelled' | 'failed';

/**
* The total vector store usage in bytes. Note that this may be different from the
* original file size.
*/
usage_bytes: number;

/**
* The ID of the
* [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object)
Expand Down
10 changes: 5 additions & 5 deletions src/resources/beta/vector-stores/vector-stores.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@ export interface VectorStore {
*/
id: string;

/**
* The byte size of the vector store.
*/
bytes: number;

/**
* The Unix timestamp (in seconds) for when the vector store was created.
*/
Expand Down Expand Up @@ -135,6 +130,11 @@ export interface VectorStore {
*/
status: 'expired' | 'in_progress' | 'completed';

/**
* The total number of bytes used by the files in the vector store.
*/
usage_bytes: number;

/**
* The expiration policy for a vector store.
*/
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.38.3'; // x-release-please-version
export const VERSION = '4.38.4'; // x-release-please-version