1 write to Key
Aspire.Hosting.GitHub.Models (1)
GitHubModelsExtensions.cs (1)
56
builder.Resource.
Key
= apiKey.Resource;
6 references to Key
Aspire.Hosting.GitHub.Models (2)
GitHubModelResource.cs (2)
52
? ReferenceExpression.Create($"Endpoint=https://models.github.ai/orgs/{Organization}/inference;Key={
Key
};Model={Model};DeploymentId={Model}")
53
: ReferenceExpression.Create($"Endpoint=https://models.github.ai/inference;Key={
Key
};Model={Model};DeploymentId={Model}");
Aspire.Hosting.GitHub.Models.Tests (4)
GitHubModelsExtensionTests.cs (4)
64
Assert.Equal(apiKeyParameter.Resource, github.Resource.
Key
);
75
Assert.NotNull(github.Resource.
Key
);
76
Assert.Equal("github-api-key", github.Resource.
Key
.Name);
77
Assert.True(github.Resource.
Key
.Secret);