File tree Expand file tree Collapse file tree 6 files changed +10
-5
lines changed Expand file tree Collapse file tree 6 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 11configured_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
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 55cd " $( dirname " $0 " ) /.."
66
77echo " ==> 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 .
Original file line number Diff line number Diff line change 55cd " $( dirname " $0 " ) /.."
66
77echo " ==> Running eslint"
8- ./node_modules/.bin/eslint --ext ts,js .
8+ ESLINT_USE_FLAT_CONFIG= " false " ./node_modules/.bin/eslint --ext ts,js .
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ export class Chat extends APIResource {
1010
1111export 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'
Original file line number Diff line number Diff 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 *
You can’t perform that action at this time.
0 commit comments