namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.
modelstringThe model name to use with GitHub Models.
organizationIResourceBuilder<ParameterResource>optionalThe organization login associated with the organization to which the request is to be attributed.
Returns
IResourceBuilder<GitHubModelResource> A reference to the ApplicationModel.IResourceBuilder`1.
organizationIResourceBuilder<ParameterResource>optionalThe organization login associated with the organization to which the request is to be attributed.
Returns
IResourceBuilder<GitHubModelResource> A reference to the ApplicationModel.IResourceBuilder`1.
Remarks
Create a GitHub Model resource for the Microsoft Phi-3 Medium Instruct model:
var builder =DistributedApplication.CreateBuilder(args);
IResourceBuilder<GitHubModelResource> The resource builder.
Remarks
This method adds a health check that verifies the GitHub Models endpoint is accessible, the API key is valid, and the specified model is available. The health check will:
Because health checks are included in the rate limit of the GitHub Models API, it is recommended to use this health check sparingly, such as when you are having issues understanding the reason the model is not working as expected. Furthermore, the health check will run a single time per application instance.