Skip to content

Commit 23c4988

Browse files
chore(internal): updates (#975)
1 parent 708f8e2 commit 23c4988

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
lines changed

Diff for: .stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 68
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-4097c2f86beb3f3bb021775cd1dfa240e960caf842aeefc2e08da4dc0851ea79.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-97797a9363b9960b5f2fbdc84426a2b91e75533ecd409fe99e37c231180a4339.yml

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"prepare": "if ./scripts/utils/check-is-in-git-install.sh; then ./scripts/build; fi",
2222
"tsn": "ts-node -r tsconfig-paths/register",
2323
"lint": "./scripts/lint",
24-
"fix": "eslint --fix --ext ts,js ."
24+
"fix": "./scripts/format"
2525
},
2626
"dependencies": {
2727
"@types/node": "^18.11.18",

Diff for: scripts/format

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ set -e
55
cd "$(dirname "$0")/.."
66

77
echo "==> Running eslint --fix"
8-
./node_modules/.bin/eslint --fix --ext ts,js .
8+
ESLINT_USE_FLAT_CONFIG="false" ./node_modules/.bin/eslint --fix --ext ts,js .

Diff for: scripts/lint

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ set -e
55
cd "$(dirname "$0")/.."
66

77
echo "==> Running eslint"
8-
./node_modules/.bin/eslint --ext ts,js .
8+
ESLINT_USE_FLAT_CONFIG="false" ./node_modules/.bin/eslint --ext ts,js .

Diff for: src/resources/chat/chat.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export class Chat extends APIResource {
1010

1111
export type ChatModel =
1212
| 'gpt-4o'
13-
| 'gpt-4o-2024-08-06'
1413
| 'gpt-4o-2024-05-13'
14+
| 'gpt-4o-2024-08-06'
1515
| 'gpt-4o-mini'
1616
| 'gpt-4o-mini-2024-07-18'
1717
| 'gpt-4-turbo'

Diff for: src/resources/chat/completions.ts

+5
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,11 @@ export interface ChatCompletionCreateParamsBase {
829829
* [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo) and
830830
* all GPT-3.5 Turbo models newer than `gpt-3.5-turbo-1106`.
831831
*
832+
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
833+
* Outputs which guarantees the model will match your supplied JSON schema. Learn
834+
* more in the
835+
* [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
836+
*
832837
* Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
833838
* message the model generates is valid JSON.
834839
*

0 commit comments

Comments
 (0)