Skip to content

Commit eb94c20

Browse files
changes s3 to use system message
1 parent c7b845f commit eb94c20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/examples/text-and-prompting/s3-chat_instructions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
string key = Environment.GetEnvironmentVariable("OPENAI_KEY")!;
88
ChatClient client = new("gpt-4.1", key);
99
ChatCompletion acompletion = client.CompleteChat([
10-
ChatMessage.CreateDeveloperMessage("Talk like a pirate."),
10+
ChatMessage.CreateSystemMessage("Talk like a pirate."),
1111
ChatMessage.CreateUserMessage("Are semicolons optional in JavaScript?")
1212
]);
1313
Console.WriteLine(acompletion.Content[0].Text);

0 commit comments

Comments
 (0)