Skip to content

Commit f798c26

Browse files
authored
Update chat_simpleprompt.cs
1 parent 64980db commit f798c26

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// SAMPLE: Generate text from a simple prompt
2-
// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
2+
// GUIDANCE: https://platform.openai.com/docs/guides/text?api-mode=chat
3+
// HOWTO: Instructions to run this code: https://aka.ms/oai/net/start
34
#:package OpenAI@2.2.*-*
45
#:property PublishAot false
56

@@ -8,4 +9,4 @@
89
string key = Environment.GetEnvironmentVariable("OPENAI_API_KEY")!;
910
ChatClient client = new("gpt-4.1", key);
1011
ChatCompletion acompletion = client.CompleteChat("Write a one-sentence bedtime story about a unicorn.");
11-
Console.WriteLine(acompletion.Content[0].Text);
12+
Console.WriteLine(acompletion.Content[0].Text);

0 commit comments

Comments
 (0)