Skip to content
Docs Try Aspire

GitHubModelResource Properties

Class Properties 5 members
Represents a GitHub Model resource.
ConnectionStringExpression Section titled ConnectionStringExpression ReferenceExpression
Gets the connection string expression for the GitHub Models resource.
public ReferenceExpression ConnectionStringExpression { get; }
Key Section titled Key ParameterResource
Gets or sets the API key (PAT or GitHub App minted token) for accessing GitHub Models.
public ParameterResource Key { get; }
The token must have the
models: read
permission if using a fine-grained PAT or GitHub App minted token.
Gets or sets the model name, e.g., "openai/gpt-4o-mini".
public string Model { get; set; }
Organization Section titled Organization nullable ParameterResource?
Gets or sets the organization login associated with the organization to which the request is to be attributed.
public ParameterResource? Organization { get; set; }
If set, the token must be attributed to an organization.
UriExpression Section titled UriExpression ReferenceExpression
Gets the endpoint URI expression for the GitHub Models resource.
public ReferenceExpression UriExpression { get; }
Format matches the configured endpoint, for example https://models.github.ai/inference or https://models.github.ai/orgs/{organization}/inference when an organization is specified.