Cnblogs.SemanticKernel.Connectors.DashScope
0.1.4
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Cnblogs.SemanticKernel.Connectors.DashScope --version 0.1.4
NuGet\Install-Package Cnblogs.SemanticKernel.Connectors.DashScope -Version 0.1.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Cnblogs.SemanticKernel.Connectors.DashScope" Version="0.1.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Cnblogs.SemanticKernel.Connectors.DashScope --version 0.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Cnblogs.SemanticKernel.Connectors.DashScope, 0.1.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Cnblogs.SemanticKernel.Connectors.DashScope as a Cake Addin #addin nuget:?package=Cnblogs.SemanticKernel.Connectors.DashScope&version=0.1.4 // Install Cnblogs.SemanticKernel.Connectors.DashScope as a Cake Tool #tool nuget:?package=Cnblogs.SemanticKernel.Connectors.DashScope&version=0.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SemanticKernel.Connectors.DashScope
Semantic Kernel Connector to DashScope
Get started
Add the NuGet package to your project.
dotnet add package Cnblogs.SemanticKernel.Connectors.DashScope
Add the dashscope
section to the appsettings.json file.
{
"dashscope": {
"modelId": "qwen-max"
}
}
Add the api key to the user-secrets.
dotnet user-secrets init
dotnet user-secrets set "dashscope:apiKey" "sk-xxx"
Usage
Program.cs
using Microsoft.SemanticKernel;
var builder = Kernel.CreateBuilder();
builder.AddDashScopeChatCompletion<Program>();
var kernel = builder.Build();
var prompt = @"<message role=""user"">Tell me about the Cnblogs</message>";
var result = await kernel.InvokePromptAsync(prompt);
Console.WriteLine(result);
public partial class Program
{ }
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.SemanticKernel.Core (>= 1.3.0)
- Sdcb.DashScope (>= 1.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Cnblogs.SemanticKernel.Connectors.DashScope:
Package | Downloads |
---|---|
Cnblogs.KernelMemory.AI.DashScope
Provide access to DashScope LLM models in Kernel Memory to generate embeddings and text |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.5.1 | 89 | 10/22/2024 |
0.5.0 | 96 | 10/3/2024 |
0.4.0 | 515 | 8/4/2024 |
0.3.3 | 205 | 7/8/2024 |
0.3.2 | 1,906 | 3/23/2024 |
0.3.1 | 121 | 3/20/2024 |
0.3.0 | 176 | 3/18/2024 |
0.2.0 | 286 | 3/7/2024 |
0.1.5 | 142 | 2/21/2024 |
0.1.4 | 135 | 2/15/2024 |
0.1.3 | 111 | 2/15/2024 |
0.1.2 | 112 | 2/13/2024 |
0.1.1 | 90 | 2/13/2024 |
0.1.0 | 176 | 2/13/2024 |