From 316e6231c27728f4031f822287389c67e914739a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 8 Aug 2024 20:21:43 +0000 Subject: [PATCH] chore(internal): updates (#6) --- .stats.yml | 2 +- chat.go | 2 +- chatcompletion.go | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ac652c9..cad2c64 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/chat.go b/chat.go index e20be1e..d6e46a7 100644 --- a/chat.go +++ b/chat.go @@ -31,8 +31,8 @@ type ChatModel = string const ( ChatModelGPT4o ChatModel = "gpt-4o" - ChatModelGPT4o2024_08_06 ChatModel = "gpt-4o-2024-08-06" ChatModelGPT4o2024_05_13 ChatModel = "gpt-4o-2024-05-13" + ChatModelGPT4o2024_08_06 ChatModel = "gpt-4o-2024-08-06" ChatModelGPT4oMini ChatModel = "gpt-4o-mini" ChatModelGPT4oMini2024_07_18 ChatModel = "gpt-4o-mini-2024-07-18" ChatModelGPT4Turbo ChatModel = "gpt-4-turbo" diff --git a/chatcompletion.go b/chatcompletion.go index 664eae4..ed0b018 100644 --- a/chatcompletion.go +++ b/chatcompletion.go @@ -1472,6 +1472,11 @@ type ChatCompletionNewParams struct { // [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. // @@ -1610,6 +1615,11 @@ func (r ChatCompletionNewParamsFunction) MarshalJSON() (data []byte, err error) // [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. // @@ -1639,6 +1649,11 @@ func (r ChatCompletionNewParamsResponseFormat) ImplementsChatCompletionNewParams // [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. //