# withHealthCheck

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

Adds a health check to the OpenAI Model resource.

## Definition

```typescript
interface OpenAIModelResource {
  // ... omitted for brevity
  withHealthCheck(): OpenAIModelResource
}
```

## Returns

[OpenAIModelResource](/reference/api/typescript/aspire.hosting.openai/openaimodelresource.md) `builder`

## Applies to

- [OpenAIModelResource](/reference/api/typescript/aspire.hosting.openai/openaimodelresource.md)
