# OpenAIModelResource

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

## Definition

```go
type OpenAIModelResource interface {
    ExpressionValue
    Resource
    ResourceWithConnectionString
    ResourceWithParent
}
```

## Embeds

- `ExpressionValue`
- `Resource`
- `ResourceWithConnectionString`
- `ResourceWithParent`

## Methods

- [WithHealthCheck](/reference/api/go/aspire.hosting.openai/openaimodelresource/withhealthcheck.md) -- `method` -- Adds a health check to the OpenAI Model resource.
  ```go
  WithHealthCheck() OpenAIModelResource
  ```
