# OpenAIModelResource

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

## Definition

```typescript
interface OpenAIModelResource
  extends IManifestExpressionProvider,
    IResource,
    IResourceWithConnectionString,
    IResourceWithParent,
    OpenAIResource]],
    IValueProvider,
    IValueWithReferences {
  withHealthCheck(): OpenAIModelResource;
}
```

## Methods

- [withHealthCheck](/reference/api/typescript/aspire.hosting.openai/openaimodelresource/withhealthcheck.md) -- `method` -- Adds a health check for the OpenAI model resource.
    ```typescript
  withHealthCheck(): OpenAIModelResource
  ```
