Skip to content

Commit 49ec0a7

Browse files
authored
Merge pull request #136 from cnblogs/remove-obsolete-apis
chore: remove obsolete apis
2 parents 72a91be + e3c4ed2 commit 49ec0a7

File tree

15 files changed

+5
-1363
lines changed

15 files changed

+5
-1363
lines changed

sample/Cnblogs.DashScope.Sample/Multimodal/OcrKeyInformationExtractionSample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public async Task RunAsync(IDashScopeClient client)
6464
}
6565
}
6666

67-
internal class ReceiptModel()
67+
internal class ReceiptModel
6868
{
6969
[JsonPropertyName("乘车日期")]
7070
public string? Date { get; init; }

src/Cnblogs.DashScope.AI/DashScopeChatClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ private static readonly TextGenerationParameters
2929
/// <param name="modelId"></param>
3030
public DashScopeChatClient(IDashScopeClient dashScopeClient, string modelId)
3131
{
32-
ArgumentNullException.ThrowIfNull(dashScopeClient, nameof(dashScopeClient));
33-
ArgumentNullException.ThrowIfNull(modelId, nameof(modelId));
32+
ArgumentNullException.ThrowIfNull(dashScopeClient);
33+
ArgumentNullException.ThrowIfNull(modelId);
3434

3535
_dashScopeClient = dashScopeClient;
3636
_modelId = modelId;

src/Cnblogs.DashScope.AI/DashScopeTextEmbeddingGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public sealed class DashScopeTextEmbeddingGenerator
2323
/// <param name="dimensions">The number of dimensions produced by the generator.</param>
2424
public DashScopeTextEmbeddingGenerator(IDashScopeClient dashScopeClient, string modelId, int? dimensions = null)
2525
{
26-
ArgumentNullException.ThrowIfNull(dashScopeClient, nameof(dashScopeClient));
27-
ArgumentNullException.ThrowIfNull(modelId, nameof(modelId));
26+
ArgumentNullException.ThrowIfNull(dashScopeClient);
27+
ArgumentNullException.ThrowIfNull(modelId);
2828

2929
_dashScopeClient = dashScopeClient;
3030
_modelId = modelId;

src/Cnblogs.DashScope.Sdk/DeepSeek/DeepSeekLlm.cs

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/Cnblogs.DashScope.Sdk/DeepSeek/DeepSeekLlmName.cs

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/Cnblogs.DashScope.Sdk/DeepSeek/DeepSeekTextGenerationApi.cs

Lines changed: 0 additions & 156 deletions
This file was deleted.

src/Cnblogs.DashScope.Sdk/QWen/QWenLlm.cs

Lines changed: 0 additions & 142 deletions
This file was deleted.

0 commit comments

Comments
 (0)