Skip to content

Commit ecd3d88

Browse files
committed
Fix OpenAI sample
1 parent d6deba9 commit ecd3d88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ var messages = new Chat()
8585

8686
IChatClient chat = new OpenAIChatClient(Env.Get("OPENAI_API_KEY")!, "o3-mini");
8787

88-
var options = new GrokChatOptions
88+
var options = new ChatOptions
8989
{
9090
ModelId = "o4-mini", // 👈 can override the model on the client
91-
ReasoningEffort = ReasoningEffort.High, // 👈 or Medium/Low
91+
ReasoningEffort = ReasoningEffort.High, // 👈 or Medium/Low, extension property
9292
};
9393

94-
var response = await grok.GetResponseAsync(messages, options);
94+
var response = await chat.GetResponseAsync(messages, options);
9595

9696
```
9797

0 commit comments

Comments
 (0)