Skip to content

Commit 520a226

Browse files
committed
Update OpenAI SDK version from 2.2.*-* to 2.*
1 parent 9414a15 commit 520a226

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

docs/guides/text/chat/chat_instructions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SAMPLE: Generate text with messages using different roles
22
// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
3-
#:package OpenAI@2.2.*-*
3+
#:package OpenAI@2.*
44
#:property PublishAot=false
55

66
using OpenAI.Chat;

docs/guides/text/chat/chat_roles.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
33
#pragma warning disable OPENAI001
44

5-
#:package OpenAI@2.2.*-*
5+
#:package OpenAI@2.*
66
#:property PublishAot=false
77

88
using OpenAI.Chat;

docs/guides/text/chat/chat_simpleprompt.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SAMPLE: Generate text from a simple prompt
22
// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
3-
#:package OpenAI@2.2.*-*
3+
#:package OpenAI@2.*
44
#:property PublishAot=false
55

66
using OpenAI.Chat;

docs/guides/text/chat/chat_tools.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// SAMPLE: Generate text from a simple prompt
2-
// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
3-
#:package OpenAI@2.2.*-*
2+
// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
3+
#:package OpenAI@2.*
44
#:property PublishAot=false
55

6-
using OpenAI.Chat;
6+
using OpenAI.Chat;
77

88
string key = Environment.GetEnvironmentVariable("OPENAI_API_KEY")!;
99
ChatClient client = new("gpt-4.1", key);
@@ -15,7 +15,7 @@
1515
functionParameters: BinaryData.FromObjectAsJson(new
1616
{
1717
type = "object",
18-
properties = new
18+
properties = new
1919
{
2020
utc = new
2121
{

docs/guides/text/responses/responses_fileinput.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
33
#pragma warning disable OPENAI001
44

5-
#:package OpenAI@2.2.*-*
5+
#:package OpenAI@2.*
66
#:property PublishAot=false
77

88
using OpenAI.Responses;

docs/guides/text/responses/responses_instructions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
33
#pragma warning disable OPENAI001
44

5-
#:package OpenAI@2.2.*-*
5+
#:package OpenAI@2.*
66
#:property PublishAot=false
77

88
using OpenAI.Responses;

docs/guides/text/responses/responses_prompttemplate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
33
#pragma warning disable OPENAI001
44

5-
#:package OpenAI@2.2.*-*
5+
#:package OpenAI@2.*
66
#:property PublishAot=false
77

88
using OpenAI.Responses;

docs/guides/text/responses/responses_roles.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
33
#pragma warning disable OPENAI001
44

5-
#:package OpenAI@2.2.*-*
5+
#:package OpenAI@2.*
66
#:property PublishAot=false
77

88
using OpenAI.Responses;

docs/guides/text/responses/responses_simpleprompt.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
33
#pragma warning disable OPENAI001
44

5-
#:package OpenAI@2.2.*-*
5+
#:package OpenAI@2.*
66
#:property PublishAot=false
77

88
using OpenAI.Responses;

0 commit comments

Comments
 (0)