diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f48cee097..d34e87f46 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.55.2" + ".": "4.55.3" } diff --git a/.stats.yml b/.stats.yml index ac652c927..cad2c64cd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 68 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-4097c2f86beb3f3bb021775cd1dfa240e960caf842aeefc2e08da4dc0851ea79.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-97797a9363b9960b5f2fbdc84426a2b91e75533ecd409fe99e37c231180a4339.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index a1e89d8f8..fefb710b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 4.55.3 (2024-08-08) + +Full Changelog: [v4.55.2...v4.55.3](https://github.com/openai/openai-node/compare/v4.55.2...v4.55.3) + +### Chores + +* **internal:** updates ([#975](https://github.com/openai/openai-node/issues/975)) ([313a190](https://github.com/openai/openai-node/commit/313a19059a61893887ac0b57bb488c24bc40f099)) + ## 4.55.2 (2024-08-08) Full Changelog: [v4.55.1...v4.55.2](https://github.com/openai/openai-node/compare/v4.55.1...v4.55.2) diff --git a/README.md b/README.md index c9bb46a73..13f449a29 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ You can import in Deno via: ```ts -import OpenAI from 'https://deno.land/x/openai@v4.55.2/mod.ts'; +import OpenAI from 'https://deno.land/x/openai@v4.55.3/mod.ts'; ``` diff --git a/package.json b/package.json index b62736b5b..31f5bc16a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openai", - "version": "4.55.2", + "version": "4.55.3", "description": "The official TypeScript library for the OpenAI API", "author": "OpenAI ", "types": "dist/index.d.ts", @@ -21,7 +21,7 @@ "prepare": "if ./scripts/utils/check-is-in-git-install.sh; then ./scripts/build; fi", "tsn": "ts-node -r tsconfig-paths/register", "lint": "./scripts/lint", - "fix": "eslint --fix --ext ts,js ." + "fix": "./scripts/format" }, "dependencies": { "@types/node": "^18.11.18", diff --git a/scripts/build-deno b/scripts/build-deno index 8aebc9cb4..cd4cbd4f5 100755 --- a/scripts/build-deno +++ b/scripts/build-deno @@ -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.2/mod.ts"; +import OpenAI from "https://deno.land/x/openai@v4.55.3/mod.ts"; const client = new OpenAI(); \`\`\` diff --git a/scripts/format b/scripts/format index d297e762f..a6bb9d03a 100755 --- a/scripts/format +++ b/scripts/format @@ -5,4 +5,4 @@ set -e cd "$(dirname "$0")/.." echo "==> Running eslint --fix" -./node_modules/.bin/eslint --fix --ext ts,js . +ESLINT_USE_FLAT_CONFIG="false" ./node_modules/.bin/eslint --fix --ext ts,js . diff --git a/scripts/lint b/scripts/lint index 6b0e5dc3e..4af1de013 100755 --- a/scripts/lint +++ b/scripts/lint @@ -5,4 +5,4 @@ set -e cd "$(dirname "$0")/.." echo "==> Running eslint" -./node_modules/.bin/eslint --ext ts,js . +ESLINT_USE_FLAT_CONFIG="false" ./node_modules/.bin/eslint --ext ts,js . diff --git a/src/resources/chat/chat.ts b/src/resources/chat/chat.ts index 031b4059b..684b1307a 100644 --- a/src/resources/chat/chat.ts +++ b/src/resources/chat/chat.ts @@ -10,8 +10,8 @@ export class Chat extends APIResource { export type ChatModel = | 'gpt-4o' - | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' + | 'gpt-4o-2024-08-06' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' diff --git a/src/resources/chat/completions.ts b/src/resources/chat/completions.ts index 91d7da801..26e7490e0 100644 --- a/src/resources/chat/completions.ts +++ b/src/resources/chat/completions.ts @@ -829,6 +829,11 @@ export interface ChatCompletionCreateParamsBase { * [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo) and * all GPT-3.5 Turbo models newer than `gpt-3.5-turbo-1106`. * + * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + * Outputs which guarantees the model will match your supplied JSON schema. Learn + * more in the + * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + * * Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the * message the model generates is valid JSON. * diff --git a/src/version.ts b/src/version.ts index 163a11feb..ec9119c18 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.55.2'; // x-release-please-version +export const VERSION = '4.55.3'; // x-release-please-version