GitHubModelResource Properties
Class Properties 5 members
Represents a GitHub Model resource.
Gets the connection string expression for the GitHub Models resource.
public ReferenceExpression ConnectionStringExpression { get; } Gets or sets the API key (PAT or GitHub App minted token) for accessing GitHub Models.
public ParameterResource Key { get; }Remarks
The token must have the permission if using a fine-grained PAT or GitHub App minted token.
models: read Gets or sets the model name, e.g., "openai/gpt-4o-mini".
public string Model { get; set; } Gets or sets the organization login associated with the organization to which the request is to be attributed.
public ParameterResource? Organization { get; set; }Remarks
If set, the token must be attributed to an organization.
Gets the endpoint URI expression for the GitHub Models resource.
public ReferenceExpression UriExpression { get; }Remarks
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.