# merge_auth_headers

> **Function** in `langchain_ollama`

📖 [View in docs](https://reference.langchain.com/python/langchain-ollama/_utils/merge_auth_headers)

Merge authentication headers into client kwargs in-place.

## Signature

```python
merge_auth_headers(
    client_kwargs: dict,
    auth_headers: dict[str, str] | None,
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `client_kwargs` | `dict` | Yes | The client kwargs dict to update. |
| `auth_headers` | `dict[str, str] \| None` | Yes | Headers to merge (typically from `parse_url_with_auth`). |

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/b302691ff9ad841804e93e5addbdc53b6974473b/libs/partners/ollama/langchain_ollama/_utils.py#L142)