![]() |
VOOZH | about |
dotnet add package AzureAI.Community.SK.Connector.GitHub.Models --version 1.0.1
NuGet\Install-Package AzureAI.Community.SK.Connector.GitHub.Models -Version 1.0.1
<PackageReference Include="AzureAI.Community.SK.Connector.GitHub.Models" Version="1.0.1" />
<PackageVersion Include="AzureAI.Community.SK.Connector.GitHub.Models" Version="1.0.1" />Directory.Packages.props
<PackageReference Include="AzureAI.Community.SK.Connector.GitHub.Models" />Project file
paket add AzureAI.Community.SK.Connector.GitHub.Models --version 1.0.1
#r "nuget: AzureAI.Community.SK.Connector.GitHub.Models, 1.0.1"
#:package AzureAI.Community.SK.Connector.GitHub.Models@1.0.1
#addin nuget:?package=AzureAI.Community.SK.Connector.GitHub.Models&version=1.0.1Install as a Cake Addin
#tool nuget:?package=AzureAI.Community.SK.Connector.GitHub.Models&version=1.0.1Install as a Cake Tool
The AzureAI.Community.SK.Connector.GitHub.Models This component provides a simplified way to connect the GitHub Module for developing generative AI applications.
If you're looking to develop a generative AI application, GitHub Models offers a platform where you can discover and experiment with AI models at no cost.
In this guide, we will walk you through simplified way to connect the GitHub Module for developing generative AI applications.
Install AzureAI.Community.SK.Connector.GitHub.Models package from nuget server
Before you begin building the GitHub Connector, make sure you have the following prerequisites in place:
You'll need access rights to connect to the GitHub Module. To obtain these rights, please visit the following URL: https://github.com/marketplace/models. and Please watch this video to learn how to apply and create a token. Here is the URL: https://www.youtube.com/watch?v=RBWadYAQze8
modelName: Get this from your GitHub Module.Endpoint: Find this in your GitHub Module.GITHUB_TOKEN: Obtain this from your GitHub account settings page. var builder = Kernel.CreateBuilder()
.AddGitHubAzureOpenAIChatCompletion(ModelName, Endpoint, GitHubToken);
var builder = Kernel.CreateBuilder()
.AddGitHubOpenAIChatCompletion(ModelName, Endpoint, GitHubToken);
var mistralAIChatCompletionService = new GitHubMistralAIChatCompletionService(MistralModel, Endpoint, GitHubToken);
var chatHistory = new ChatHistory
{
new ChatMessageContent(AuthorRole.User, "What is the best in TamilNadu?")
};
var response = await mistralAIChatCompletionService.GetChatMessageContentsAsync(chatHistory, default);
var mistralAIChatCompletionService = new GitHubMistralAIChatCompletionService(MistralModel, Endpoint, GitHubToken);
var chatHistory = new ChatHistory
{
new ChatMessageContent(AuthorRole.User, "What is the best in TamilNadu?")
};
var response = mistralAIChatCompletionService.GetStreamingChatMessageContentsAsync(chatHistory, default);
await foreach (var content in response)
{
Console.Write(content);
}
var builder = Kernel.CreateBuilder()
.AddGitHubPhi3AIChatCompletion(Config.Phi3Model, Config.Endpoint, Config.GitHubToken);
var kernel = builder.Build();
Learn Microsoft AI to learn more about Microsoft Semantic Kernel and GitHub Models.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.