# set_pydantic_config

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/_openapi_client/_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-sdk/blob/19d52419f47c93ca2c57a0d51c58d255f5949092/python/langsmith/_openapi_client/_models.py#L820)