File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ The support for OpenAI chat clients provided in [Microsoft.Extensions.AI.OpenAI]
6868 a single model identifier for all requests, at the time the ` OpenAIClient.GetChatClient ` is
6969 invoked.
7070* Setting reasoning effort: the Microsoft.Extensions.AI API does not expose a way to set reasoning
71- effort for reasoning-capable models, which is very useful for some models like ` o4-mini ` .
71+ effort for reasoning-capable models, which is very useful for some models like ` gpt-5.2 ` .
7272
7373So solve both issues, this package provides an ` OpenAIChatClient ` that wraps the underlying
7474` OpenAIClient ` and allows setting the model identifier and reasoning effort per request, just
@@ -86,15 +86,15 @@ IChatClient chat = new OpenAIChatClient(Environment.GetEnvironmentVariable("OPEN
8686var options = new ChatOptions
8787{
8888 ModelId = " gpt-5-mini" , // 👈 can override the model on the client
89- ReasoningEffort = ReasoningEffort .High , // 👈 or Medium/Low/Minimal, extension property
89+ ReasoningEffort = ReasoningEffort .High , // 👈 or Medium/Low/Minimal/None , extension property
9090 };
9191
9292var response = await chat .GetResponseAsync (messages , options );
9393```
9494
9595> [ !TIP]
9696> We provide support for the newest ` Minimal ` reasoning effort in the just-released
97- > GPT-5 model family.
97+ > GPT-5 model family as well as ` None ` which is the new default in GPT-5.2 .
9898
9999### Web Search
100100
You can’t perform that action at this time.
0 commit comments