eeb6174de0
- ASP.NET Core 10 Backend (JWT Auth, Agent config API) - Vue 3 Frontend (Dashboard, Team, Agents, Config Editor) - PostgreSQL Database - Docker Compose setup - Mission Control Dashboard redesign
26 lines
807 B
C#
26 lines
807 B
C#
using Nexus.Api.Domain;
|
|
|
|
namespace Nexus.Api.Integrations;
|
|
|
|
public sealed class NvidiaProvider(IConfiguration configuration) : IModelProvider
|
|
{
|
|
public string Name => "NVIDIA";
|
|
|
|
public Task<IReadOnlyCollection<ModelProviderStatus>> GetModelsAsync(
|
|
CancellationToken cancellationToken)
|
|
{
|
|
var configured = !string.IsNullOrWhiteSpace(
|
|
configuration["Integrations:Nvidia:ApiKey"]);
|
|
IReadOnlyCollection<ModelProviderStatus> models =
|
|
[
|
|
new(
|
|
Name,
|
|
"moonshotai/kimi-k2.6",
|
|
configured ? OperationalStatus.Online : OperationalStatus.Unknown,
|
|
false,
|
|
configured ? "Credential configured" : "Credential required")
|
|
];
|
|
return Task.FromResult(models);
|
|
}
|
|
}
|