File tree Expand file tree Collapse file tree 10 files changed +47
-35
lines changed Expand file tree Collapse file tree 10 files changed +47
-35
lines changed Original file line number Diff line number Diff line change 11{
22 "sdk" : {
3- "version" : " 10.*-preview "
3+ "version" : " 10.*-rc* "
44 }
55}
Original file line number Diff line number Diff line change 11// SAMPLE: Generate text with messages using different roles
2- // GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
3- #: package OpenAI @2.2 . * - *
4- #: property PublishAot false
2+ // GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
3+ #: package OpenAI @2 . *
4+ #: property PublishAot = false
55
6- using OpenAI. Chat;
6+ using OpenAI. Chat ;
77
88string key = Environment . GetEnvironmentVariable ( "OPENAI_API_KEY" ) ! ;
99ChatClient client = new ( "gpt-4.1" , key ) ;
Original file line number Diff line number Diff line change 11// SAMPLE: Generate text with messages using different roles
2- // GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
3- #: package OpenAI @2.2 . * - *
4- #: property PublishAot false
2+ // GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
3+ #pragma warning disable OPENAI001
54
6- using OpenAI. Chat;
5+ #: package OpenAI @2 . *
6+ #: property PublishAot = false
7+
8+ using OpenAI. Chat ;
79
810string key = Environment . GetEnvironmentVariable ( "OPENAI_API_KEY" ) ! ;
911ChatClient client = new ( "gpt-4.1" , key ) ;
Original file line number Diff line number Diff line change 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 . * - *
4- #: property PublishAot false
2+ // GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
3+ #: package OpenAI @2 . *
4+ #: property PublishAot = false
55
6- using OpenAI. Chat;
6+ using OpenAI. Chat ;
77
88string key = Environment . GetEnvironmentVariable ( "OPENAI_API_KEY" ) ! ;
99ChatClient client = new ( "gpt-4.1" , key ) ;
Original file line number Diff line number Diff line change 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
88string key = Environment . GetEnvironmentVariable ( "OPENAI_API_KEY" ) ! ;
99ChatClient client = new ( "gpt-4.1" , key ) ;
1515 functionParameters : BinaryData . FromObjectAsJson ( new
1616 {
1717 type = "object" ,
18- properties = new
18+ properties = new
1919 {
2020 utc = new
2121 {
Original file line number Diff line number Diff line change 11// SAMPLE: Prompt template with file input variable
2- // GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
3- #: package OpenAI @2.2 . * - *
4- #: property PublishAot false
2+ // GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
3+ #pragma warning disable OPENAI001
4+
5+ #: package OpenAI @2 . *
6+ #: property PublishAot = false
57
68using OpenAI. Responses ;
79using OpenAI . Files ;
Original file line number Diff line number Diff line change 11// SAMPLE: Generate text with instructions
2- // GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
3- #: package OpenAI @2.2 . * - *
4- #: property PublishAot false
2+ // GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
3+ #pragma warning disable OPENAI001
54
6- using OpenAI. Responses;
5+ #: package OpenAI @2 . *
6+ #: property PublishAot = false
7+
8+ using OpenAI. Responses ;
79
810string key = Environment . GetEnvironmentVariable ( "OPENAI_API_KEY" ) ! ;
911OpenAIResponseClient client = new ( "gpt-4.1" , key ) ;
Original file line number Diff line number Diff line change 11// SAMPLE: Generate text with a prompt template
2- // GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
3- #: package OpenAI @2.2 . * - *
4- #: property PublishAot false
2+ // GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
3+ #pragma warning disable OPENAI001
4+
5+ #: package OpenAI @2 . *
6+ #: property PublishAot = false
57
68using OpenAI. Responses ;
79using System . ClientModel ;
Original file line number Diff line number Diff line change 11// SAMPLE: Generate text with messages using different roles
2- // GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
3- #: package OpenAI @2.2 . * - *
4- #: property PublishAot false
2+ // GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
3+ #pragma warning disable OPENAI001
54
6- using OpenAI. Responses;
5+ #: package OpenAI @2 . *
6+ #: property PublishAot = false
7+
8+ using OpenAI. Responses ;
79
810string key = Environment . GetEnvironmentVariable ( "OPENAI_API_KEY" ) ! ;
911OpenAIResponseClient client = new ( "gpt-4.1" , key ) ;
Original file line number Diff line number Diff line change 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 . * - *
4- #: property PublishAot false
2+ // GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
3+ #pragma warning disable OPENAI001
54
6- using OpenAI. Responses;
5+ #: package OpenAI @2 . *
6+ #: property PublishAot = false
7+
8+ using OpenAI. Responses ;
79
810string key = Environment . GetEnvironmentVariable ( "OPENAI_API_KEY" ) ! ;
911OpenAIResponseClient client = new ( "gpt-4.1" , key ) ;
You can’t perform that action at this time.
0 commit comments