We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81c4795 commit 419d117Copy full SHA for 419d117
docs/global.json
@@ -0,0 +1,5 @@
1
+{
2
+ "sdk": {
3
+ "version": "10.*-rc*"
4
+ }
5
+}
docs/overview/developer_quickstart.cs
@@ -0,0 +1,14 @@
+// SAMPLE: Generate text from a simple prompt
+// GUIDANCE: Instructions to run this code: https://aka.ms/oai/net/start
+#pragma warning disable OPENAI001
+
+#:package OpenAI@2.*
6
+#:property PublishAot=false
7
8
+using OpenAI.Responses;
9
10
+string key = Environment.GetEnvironmentVariable("OPENAI_API_KEY")!;
11
+OpenAIResponseClient client = new(model: "gpt-5", apiKey: key);
12
+OpenAIResponse response = client.CreateResponse("Write a short bedtime story about a unicorn.");
13
14
+Console.WriteLine(response.GetOutputText());
0 commit comments