# set_pydantic_config

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/_models/set_pydantic_config)

Add a pydantic config for the given type.

Note: this is a no-op on Pydantic v1.

## Signature

```python
set_pydantic_config(
    typ: Any,
    config: pydantic.ConfigDict,
) -> None
```

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-python/blob/15dd2a789f976bbbafd803b26d0f25c08b5ed527/src/langsmith/_models.py#L820)