Merge pull request #831 from stephentoub/updatemeai
Update M.E.AI to 9.1.0-preview.1.25064.3
This commit is contained in:
commit
d1fa6e6fc7
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue