# ModelChoice

> **Class** in `langchain_openai`

📖 [View in docs](https://reference.langchain.com/python/langchain-openai/middleware/model_router/ModelChoice)

A model available to the router and the criterion for selecting it.

## Signature

```python
ModelChoice(
    self,
    model: str | BaseChatModel,
    criteria: str,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `model` | `str \| BaseChatModel` | Yes | LangChain model instance or model string accepted by `init_chat_model`. |
| `criteria` | `str` | Yes | Description of the tasks suited to the model. |

## Constructors

```python
__init__(
    self,
    model: str | BaseChatModel,
    criteria: str,
) -> None
```

| Name | Type |
|------|------|
| `model` | `str \| BaseChatModel` |
| `criteria` | `str` |


## Properties

- `model`
- `criteria`

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/16a08bda1247010c23fcfa887e421259a5fced5e/libs/partners/openai/langchain_openai/middleware/model_router.py#L44)