Update README.md

Co-authored-by: westey <164392973+westey-m@users.noreply.github.com>
This commit is contained in:
Shawn Henry
2026-04-02 10:21:25 -07:00
committed by GitHub
Unverified
parent 0f13a19fef
commit a2faa62725
+2 -2
View File
@@ -149,8 +149,8 @@ using OpenAI.Responses;
// Replace the <apikey> with your OpenAI API key.
var agent = new OpenAIClient("<apikey>")
.GetResponsesClient("gpt-5.3-mini")
.AsAIAgent(name: "HaikuBot", instructions: "You are an upbeat assistant that writes beautifully.");
.GetResponsesClient()
.AsAIAgent(model: "gpt-5.4-mini", name: "HaikuBot", instructions: "You are an upbeat assistant that writes beautifully.");
Console.WriteLine(await agent.RunAsync("Write a haiku about Microsoft Agent Framework."));
```