Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand Integrations List and Standardize ProviderName in Model Providers #12

Merged
merged 1 commit into from
Jul 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,55 @@ private async Task SeedNewSettingsAsync(IMongoCollection<AppSettingsDocument> se
Integrations =
[
new() {
Name = "OpenAI",
Name = "Anthropic",
ApiKey = string.Empty,
Endpoint = string.Empty,
IsEnabled = true,
},
new() {
Name = "AWSAmazonBedrock",
ApiKey = string.Empty,
Endpoint = string.Empty,
IsEnabled = true,
},
new() {
Name = "Cloudflare",
ApiKey = string.Empty,
Endpoint = string.Empty,
IsEnabled = true,
},
new() {
Name = "GoogleGemini",
ApiKey = string.Empty,
Endpoint = string.Empty,
IsEnabled = true,
},
new() {
Name = "Groq",
ApiKey = string.Empty,
Endpoint = string.Empty,
IsEnabled = true,
},
new() {
Name = "HuggingFace",
ApiKey = string.Empty,
Endpoint = string.Empty,
IsEnabled = true,
},
new() {
Name = "LMStudio",
ApiKey = string.Empty,
Endpoint = string.Empty,
IsEnabled = true,
},
new() {
Name = "MicrosoftAzureOpenAI",
ApiKey = string.Empty,
Endpoint = string.Empty,
IsEnabled = true,
},
new() {
Name = "MistralAI",
ApiKey = string.Empty,
Endpoint = string.Empty,
IsEnabled = true,
Expand All @@ -52,6 +100,30 @@ private async Task SeedNewSettingsAsync(IMongoCollection<AppSettingsDocument> se
Endpoint = string.Empty,
IsEnabled = true,
},
new() {
Name = "OpenAI",
ApiKey = string.Empty,
Endpoint = string.Empty,
IsEnabled = true,
},
new() {
Name = "OpenRouter",
ApiKey = string.Empty,
Endpoint = string.Empty,
IsEnabled = true,
},
new() {
Name = "Perplexity",
ApiKey = string.Empty,
Endpoint = string.Empty,
IsEnabled = true,
},
new() {
Name = "TogetherAI",
ApiKey = string.Empty,
Endpoint = string.Empty,
IsEnabled = true,
}
],
CreatedAt = now,
UpdatedAt = now
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ internal class OpenAiModelCatalog(IHttpClientService httpClientService, OpenAiOp
{
public string ProviderName => OpenAIVendor;
private const string OpenAIApiEndpoint = "https://api.openai.com/v1/models";
private const string OpenAIVendor = "Openai";
private const string OpenAIVendor = "OpenAI";

private readonly IHttpClientService _httpClientService = httpClientService;
private readonly OpenAiOptions _openAiOptions = openAiOptions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ internal sealed class OllamaProvider : IConnector
private readonly string _endpoint;

public Kernel Kernel { get; private set; } = null!;
public string ProviderName => "ollama";
public string ProviderName => "Ollama";

public OllamaProvider(OllamaOptions options, ISettingsRepository settingsRepository, IChatContext chatContext, TimeProvider clock)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ internal sealed class OpenAiProvider : IConnector
private readonly IChatContext _chatContext;
private readonly TimeProvider _clock;
public Kernel Kernel { get; private set; } = null!;
public string ProviderName => "openai";
public string ProviderName => "OpenAI";

public OpenAiProvider(OpenAiOptions options, IChatContext chatContext, TimeProvider clock)
{
Expand Down
Loading