Skip to content

Commit 5c50eda

Browse files
authored
Merge pull request #33 from jozkee/update-meai
Update to M.E.AI 9.4.0-preview.1.25207.5
2 parents df5029c + aaa1eec commit 5c50eda

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/GenerativeAI.Microsoft/GenerativeAI.Microsoft.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<ProjectReference Include="..\GenerativeAI\GenerativeAI.csproj" />
3333
</ItemGroup>
3434
<ItemGroup>
35-
<PackageReference Include="Microsoft.Extensions.AI" Version="9.3.0-preview.1.25161.3" />
35+
<PackageReference Include="Microsoft.Extensions.AI" Version="9.4.0-preview.1.25207.5" />
3636
</ItemGroup>
3737

3838
</Project>

src/GenerativeAI.Microsoft/GenerativeAIChatClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private async Task<ChatResponse> CallFunctionAsync(GenerateContentRequest reques
8181
var tool = (AIFunction?) options.Tools.Where(s=>s is AIFunction).FirstOrDefault(s=>s.Name == functionCall.Name);
8282
if (tool != null)
8383
{
84-
var result = await tool.InvokeAsync(functionCall.Arguments,cancellationToken).ConfigureAwait(false);
84+
var result = await tool.InvokeAsync(new AIFunctionArguments(functionCall.Arguments), cancellationToken).ConfigureAwait(false);
8585
if (result != null)
8686
{
8787
var contents = request.Contents;
@@ -126,7 +126,7 @@ private async IAsyncEnumerable<ChatResponseUpdate> CallFunctionStreamingAsync(Ge
126126
var tool = (AIFunction?) options.Tools.Where(s=>s is AIFunction).FirstOrDefault(s=>s.Name == functionCall.Name);
127127
if (tool != null)
128128
{
129-
var result = await tool.InvokeAsync(functionCall.Arguments,cancellationToken).ConfigureAwait(false);
129+
var result = await tool.InvokeAsync(new AIFunctionArguments(functionCall.Arguments), cancellationToken).ConfigureAwait(false);
130130
if (result != null)
131131
{
132132
var contents = request.Contents;

0 commit comments

Comments
 (0)