You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The support for OpenAI chat clients provided in [Microsoft.Extensions.AI.OpenAI](https://www.nuget.org/packages/Microsoft.Extensions.AI.OpenAI) fall short in some scenarios:
62
+
63
+
* Specifying per-chat model identifier: the OpenAI client options only allow setting
64
+
a single model identifier for all requests, at the time the `OpenAIClient.GetChatClient` is
65
+
invoked.
66
+
* Setting reasoning effort: the Microsoft.Extensions.AI API does not expose a way to set reasoning
67
+
effort for reasoning-capable models, which is very useful for some models like `o4-mini`.
68
+
69
+
So solve both issues, this package provides an `OpenAIChatClient` that wraps the underlying
70
+
`OpenAIClient` and allows setting the model identifier and reasoning effort per request, just
71
+
like the above Grok examples showed:
72
+
73
+
```csharp
74
+
varmessages=newChat()
75
+
{
76
+
{ "system", "You are a highly intelligent AI assistant." },
0 commit comments