# GitHubModelResource

- Module: [Aspire.Hosting.GitHub.Models](/reference/api/typescript/aspire.hosting.github.models.md)
- Version: `13.2.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

## Definition

```typescript
interface GitHubModelResource
  extends IManifestExpressionProvider,
    IResource,
    IResourceWithConnectionString,
    IValueProvider,
    IValueWithReferences {
  enableHealthCheck(): GitHubModelResource;
  withApiKey(apiKey: ParameterResource): GitHubModelResource;
}
```

## Methods

- [enableHealthCheck](/reference/api/typescript/aspire.hosting.github.models/githubmodelresource/enablehealthcheck.md) -- `method` -- Adds a health check for the GitHub Model resource.
    ```typescript
  enableHealthCheck(): GitHubModelResource
  ```
- [withApiKey](/reference/api/typescript/aspire.hosting.github.models/githubmodelresource/withapikey.md) -- `method` -- Configures the API key for the GitHub Model resource.
    ```typescript
  withApiKey(apiKey: ParameterResource): GitHubModelResource
  ```
