Merge pull request #831 from stephentoub/updatemeai

Update M.E.AI to 9.1.0-preview.1.25064.3
This commit is contained in:
Haiping 2025-01-17 09:17:26 -06:00 committed by GitHub
commit d1fa6e6fc7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -12,7 +12,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" Version="9.0.1-preview.1.24570.5" /> <PackageReference Include="Microsoft.Extensions.AI.Abstractions" Version="9.1.0-preview.1.25064.3" />
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" /> <PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" />
</ItemGroup> </ItemGroup>

View file

@ -66,8 +66,7 @@ public sealed class MicrosoftExtensionsAIChatCompletionProvider : IChatCompletio
if (_services.GetService<IAgentService>() is { } agentService) if (_services.GetService<IAgentService>() is { } agentService)
{ {
var functions = agent.Functions.Concat(agent.SecondaryFunctions ?? []); foreach (var function in agent.Functions)
foreach (var function in functions)
{ {
if (agentService.RenderFunction(agent, function)) if (agentService.RenderFunction(agent, function))
{ {