diff --git a/docs/guides/global.json b/docs/guides/global.json index c0facce53..6d1a5f4a6 100644 --- a/docs/guides/global.json +++ b/docs/guides/global.json @@ -1,5 +1,5 @@ { "sdk": { - "version": "10.*-preview" + "version": "10.*-rc*" } } \ No newline at end of file diff --git a/docs/guides/text/chat/chat_instructions.cs b/docs/guides/text/chat/chat_instructions.cs index b9ed0f18c..4223b2165 100644 --- a/docs/guides/text/chat/chat_instructions.cs +++ b/docs/guides/text/chat/chat_instructions.cs @@ -1,9 +1,9 @@ // SAMPLE: Generate text with messages using different roles -// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start -#:package OpenAI@2.2.*-* -#:property PublishAot false +// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start +#:package OpenAI@2.* +#:property PublishAot=false -using OpenAI.Chat; +using OpenAI.Chat; string key = Environment.GetEnvironmentVariable("OPENAI_API_KEY")!; ChatClient client = new("gpt-4.1", key); diff --git a/docs/guides/text/chat/chat_roles.cs b/docs/guides/text/chat/chat_roles.cs index 2353dc5bf..5925e5480 100644 --- a/docs/guides/text/chat/chat_roles.cs +++ b/docs/guides/text/chat/chat_roles.cs @@ -1,9 +1,11 @@ // SAMPLE: Generate text with messages using different roles -// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start -#:package OpenAI@2.2.*-* -#:property PublishAot false +// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start +#pragma warning disable OPENAI001 -using OpenAI.Chat; +#:package OpenAI@2.* +#:property PublishAot=false + +using OpenAI.Chat; string key = Environment.GetEnvironmentVariable("OPENAI_API_KEY")!; ChatClient client = new("gpt-4.1", key); diff --git a/docs/guides/text/chat/chat_simpleprompt.cs b/docs/guides/text/chat/chat_simpleprompt.cs index 11378d4c6..f7e80838e 100644 --- a/docs/guides/text/chat/chat_simpleprompt.cs +++ b/docs/guides/text/chat/chat_simpleprompt.cs @@ -1,9 +1,9 @@ // SAMPLE: Generate text from a simple prompt -// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start -#:package OpenAI@2.2.*-* -#:property PublishAot false +// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start +#:package OpenAI@2.* +#:property PublishAot=false -using OpenAI.Chat; +using OpenAI.Chat; string key = Environment.GetEnvironmentVariable("OPENAI_API_KEY")!; ChatClient client = new("gpt-4.1", key); diff --git a/docs/guides/text/chat/chat_tools.cs b/docs/guides/text/chat/chat_tools.cs index b49b282e1..89237f56d 100644 --- a/docs/guides/text/chat/chat_tools.cs +++ b/docs/guides/text/chat/chat_tools.cs @@ -1,9 +1,9 @@ // SAMPLE: Generate text from a simple prompt -// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start -#:package OpenAI@2.2.*-* +// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start +#:package OpenAI@2.* #:property PublishAot=false -using OpenAI.Chat; +using OpenAI.Chat; string key = Environment.GetEnvironmentVariable("OPENAI_API_KEY")!; ChatClient client = new("gpt-4.1", key); @@ -15,7 +15,7 @@ functionParameters: BinaryData.FromObjectAsJson(new { type = "object", - properties = new + properties = new { utc = new { diff --git a/docs/guides/text/responses/responses_fileinput.cs b/docs/guides/text/responses/responses_fileinput.cs index 16930bef5..f20a93da1 100644 --- a/docs/guides/text/responses/responses_fileinput.cs +++ b/docs/guides/text/responses/responses_fileinput.cs @@ -1,7 +1,9 @@ // SAMPLE: Prompt template with file input variable -// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start -#:package OpenAI@2.2.*-* -#:property PublishAot false +// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start +#pragma warning disable OPENAI001 + +#:package OpenAI@2.* +#:property PublishAot=false using OpenAI.Responses; using OpenAI.Files; diff --git a/docs/guides/text/responses/responses_instructions.cs b/docs/guides/text/responses/responses_instructions.cs index e60e5e086..b5dedf5a6 100644 --- a/docs/guides/text/responses/responses_instructions.cs +++ b/docs/guides/text/responses/responses_instructions.cs @@ -1,9 +1,11 @@ // SAMPLE: Generate text with instructions -// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start -#:package OpenAI@2.2.*-* -#:property PublishAot false +// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start +#pragma warning disable OPENAI001 -using OpenAI.Responses; +#:package OpenAI@2.* +#:property PublishAot=false + +using OpenAI.Responses; string key = Environment.GetEnvironmentVariable("OPENAI_API_KEY")!; OpenAIResponseClient client = new("gpt-4.1", key); diff --git a/docs/guides/text/responses/responses_prompttemplate.cs b/docs/guides/text/responses/responses_prompttemplate.cs index 755a7542f..e8180f718 100644 --- a/docs/guides/text/responses/responses_prompttemplate.cs +++ b/docs/guides/text/responses/responses_prompttemplate.cs @@ -1,7 +1,9 @@ // SAMPLE: Generate text with a prompt template -// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start -#:package OpenAI@2.2.*-* -#:property PublishAot false +// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start +#pragma warning disable OPENAI001 + +#:package OpenAI@2.* +#:property PublishAot=false using OpenAI.Responses; using System.ClientModel; diff --git a/docs/guides/text/responses/responses_roles.cs b/docs/guides/text/responses/responses_roles.cs index 9100d6550..b379c0e1c 100644 --- a/docs/guides/text/responses/responses_roles.cs +++ b/docs/guides/text/responses/responses_roles.cs @@ -1,9 +1,11 @@ // SAMPLE: Generate text with messages using different roles -// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start -#:package OpenAI@2.2.*-* -#:property PublishAot false +// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start +#pragma warning disable OPENAI001 -using OpenAI.Responses; +#:package OpenAI@2.* +#:property PublishAot=false + +using OpenAI.Responses; string key = Environment.GetEnvironmentVariable("OPENAI_API_KEY")!; OpenAIResponseClient client = new("gpt-4.1", key); diff --git a/docs/guides/text/responses/responses_simpleprompt.cs b/docs/guides/text/responses/responses_simpleprompt.cs index 20abdcba4..6aa45f2d9 100644 --- a/docs/guides/text/responses/responses_simpleprompt.cs +++ b/docs/guides/text/responses/responses_simpleprompt.cs @@ -1,9 +1,11 @@ // SAMPLE: Generate text from a simple prompt -// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start -#:package OpenAI@2.2.*-* -#:property PublishAot false +// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start +#pragma warning disable OPENAI001 -using OpenAI.Responses; +#:package OpenAI@2.* +#:property PublishAot=false + +using OpenAI.Responses; string key = Environment.GetEnvironmentVariable("OPENAI_API_KEY")!; OpenAIResponseClient client = new("gpt-4.1", key);