Skip to content

Commit 19fc529

Browse files
committed
Update to M.E.AI 9.4.3-preview.1.25230.7
1 parent 48f979f commit 19fc529

File tree

5 files changed

+15
-6
lines changed

5 files changed

+15
-6
lines changed

sample/Cnblogs.DashScope.Sample/Cnblogs.DashScope.Sample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</ItemGroup>
2121

2222
<ItemGroup>
23-
<PackageReference Include="Microsoft.Extensions.AI" Version="9.4.0-preview.1.25207.5" />
23+
<PackageReference Include="Microsoft.Extensions.AI" Version="9.4.3-preview.1.25230.7" />
2424
</ItemGroup>
2525

2626
</Project>

src/Cnblogs.DashScope.AI/Cnblogs.DashScope.AI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</ItemGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" Version="9.4.0-preview.1.25207.5" />
13+
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" Version="9.4.3-preview.1.25230.7" />
1414
</ItemGroup>
1515

1616
</Project>

src/Cnblogs.DashScope.AI/DashScopeChatClient.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Runtime.CompilerServices;
1+
using System.Runtime.CompilerServices;
22
using System.Text.Json;
33
using Cnblogs.DashScope.Core;
44
using Cnblogs.DashScope.Sdk;
@@ -503,7 +503,8 @@ private IEnumerable<TextChatMessage> ToTextChatMessages(
503503
RequiredChatToolMode required when string.IsNullOrEmpty(required.RequiredFunctionName) == false =>
504504
ToolChoice.FunctionChoice(required.RequiredFunctionName),
505505
_ => ToolChoice.AutoChoice
506-
}
506+
},
507+
ParallelToolCalls = options.AllowMultipleToolCalls,
507508
};
508509
}
509510

src/Cnblogs.DashScope.Core/ITextGenerationParameters.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Cnblogs.DashScope.Core;
1+
namespace Cnblogs.DashScope.Core;
22

33
/// <summary>
44
/// The text generation options.
@@ -49,4 +49,9 @@ public interface ITextGenerationParameters
4949
/// Behavior when choosing tools.
5050
/// </summary>
5151
public ToolChoice? ToolChoice { get; }
52+
53+
/// <summary>
54+
/// Whether to enable parallel tool calling
55+
/// </summary>
56+
public bool? ParallelToolCalls { get; }
5257
}

src/Cnblogs.DashScope.Core/TextGenerationParameters.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Cnblogs.DashScope.Core;
1+
namespace Cnblogs.DashScope.Core;
22

33
/// <summary>
44
/// The text generation options.
@@ -44,6 +44,9 @@ public class TextGenerationParameters : ITextGenerationParameters
4444
/// <inheritdoc />
4545
public ToolChoice? ToolChoice { get; set; }
4646

47+
/// <inheritdoc />
48+
public bool? ParallelToolCalls { get; set; }
49+
4750
/// <inheritdoc />
4851
public bool? IncrementalOutput { get; set; }
4952
}

0 commit comments

Comments
 (0)