# GitHubModelResource

- Kind: `class`
- Package: [Aspire.Hosting.GitHub.Models](/reference/api/csharp/aspire.hosting.github.models.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.GitHub.Models`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.GitHub.Models/GitHubModelResource.cs)
- Inherits: `Resource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IValueProvider`, `IValueWithReferences`

Represents a GitHub Model resource.

## Definition

```csharp
namespace Aspire.Hosting.GitHub.Models;

public class GitHubModelResource
    : Aspire.Hosting.ApplicationModel.Resource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## Constructors

- [GitHubModelResource(string, string, ParameterResource?, ParameterResource)](/reference/api/csharp/aspire.hosting.github.models/githubmodelresource/constructors.md#constructor-string-string-parameterresource-parameterresource) -- Initializes a new instance of the [GitHubModelResource](/reference/api/csharp/aspire.hosting.github.models/githubmodelresource.md) class.

## Properties

- [ConnectionStringExpression](/reference/api/csharp/aspire.hosting.github.models/githubmodelresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Gets the connection string expression for the GitHub Models resource.
- [Key](/reference/api/csharp/aspire.hosting.github.models/githubmodelresource/properties.md#key) : `ParameterResource` `get` -- Gets or sets the API key (PAT or GitHub App minted token) for accessing GitHub Models.
- [Model](/reference/api/csharp/aspire.hosting.github.models/githubmodelresource/properties.md#model) : `string` `get; set` -- Gets or sets the model name, e.g., "openai/gpt-4o-mini".
- [Organization](/reference/api/csharp/aspire.hosting.github.models/githubmodelresource/properties.md#organization) : `ParameterResource?` `get; set` -- Gets or sets the organization login associated with the organization to which the request is to be attributed.
- [UriExpression](/reference/api/csharp/aspire.hosting.github.models/githubmodelresource/properties.md#uriexpression) : `ReferenceExpression` `get` -- Gets the endpoint URI expression for the GitHub Models resource.
