# try_neq_default

> **Function** in `langchain_core`

📖 [View in docs](https://reference.langchain.com/python/langchain-core/load/serializable/try_neq_default)

Try to determine if a value is different from the default.

## Signature

```python
try_neq_default(
    value: Any,
    key: str,
    model: BaseModel,
) -> bool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `value` | `Any` | Yes | The value. |
| `key` | `str` | Yes | The key. |
| `model` | `BaseModel` | Yes | The Pydantic model. |

## Returns

`bool`

Whether the value is different from the default.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/9f232caa7a8fe1ca042a401942d5d90d54ceb1a6/libs/core/langchain_core/load/serializable.py#L58)