From 59c2b81627ea752ba6702aa1f3c60aaf4ee99679 Mon Sep 17 00:00:00 2001 From: Mason Daugherty Date: Thu, 26 Jun 2025 13:35:14 -0400 Subject: [PATCH] docs: fix some inline links (#31748) --- .../partners/ollama/langchain_ollama/chat_models.py | 13 +++++++------ libs/partners/ollama/langchain_ollama/embeddings.py | 13 +++++++------ libs/partners/ollama/langchain_ollama/llms.py | 13 +++++++------ 3 files changed, 21 insertions(+), 18 deletions(-) diff --git a/libs/partners/ollama/langchain_ollama/chat_models.py b/libs/partners/ollama/langchain_ollama/chat_models.py index 0bd1f9fd381..97d749a4100 100644 --- a/libs/partners/ollama/langchain_ollama/chat_models.py +++ b/libs/partners/ollama/langchain_ollama/chat_models.py @@ -443,15 +443,16 @@ class ChatOllama(BaseChatModel): """ async_client_kwargs: Optional[dict] = {} - """Additional kwargs to merge with client_kwargs before - passing to the httpx AsyncClient. - For a full list of the params, see [this link](https://www.python-httpx.org/api/#asyncclient) + """Additional kwargs to merge with client_kwargs before passing to the HTTPX + AsyncClient. + + For a full list of the params, see the `HTTPX documentation `__. """ sync_client_kwargs: Optional[dict] = {} - """Additional kwargs to merge with client_kwargs before - passing to the httpx Client. - For a full list of the params, see [this link](https://www.python-httpx.org/api/#client) + """Additional kwargs to merge with client_kwargs before passing to the httpx Client. + + For a full list of the params, see the `HTTPX documentation `__. """ _client: Client = PrivateAttr(default=None) # type: ignore diff --git a/libs/partners/ollama/langchain_ollama/embeddings.py b/libs/partners/ollama/langchain_ollama/embeddings.py index 15643529cda..f1d12bca57d 100644 --- a/libs/partners/ollama/langchain_ollama/embeddings.py +++ b/libs/partners/ollama/langchain_ollama/embeddings.py @@ -134,15 +134,16 @@ class OllamaEmbeddings(BaseModel, Embeddings): """ async_client_kwargs: Optional[dict] = {} - """Additional kwargs to merge with client_kwargs before - passing to the httpx AsyncClient. - For a full list of the params, see [this link](https://www.python-httpx.org/api/#asyncclient) + """Additional kwargs to merge with client_kwargs before passing to the httpx + AsyncClient. + + For a full list of the params, see the `HTTPX documentation `__. """ sync_client_kwargs: Optional[dict] = {} - """Additional kwargs to merge with client_kwargs before - passing to the httpx Client. - For a full list of the params, see [this link](https://www.python-httpx.org/api/#client) + """Additional kwargs to merge with client_kwargs before passing to the httpx Client. + + For a full list of the params, see the `HTTPX documentation `__. """ _client: Client = PrivateAttr(default=None) # type: ignore diff --git a/libs/partners/ollama/langchain_ollama/llms.py b/libs/partners/ollama/langchain_ollama/llms.py index db947f0d0ef..83330ec5e3d 100644 --- a/libs/partners/ollama/langchain_ollama/llms.py +++ b/libs/partners/ollama/langchain_ollama/llms.py @@ -120,15 +120,16 @@ class OllamaLLM(BaseLLM): """ async_client_kwargs: Optional[dict] = {} - """Additional kwargs to merge with client_kwargs before - passing to the httpx AsyncClient. - For a full list of the params, see [this link](https://www.python-httpx.org/api/#asyncclient) + """Additional kwargs to merge with client_kwargs before passing to the HTTPX + AsyncClient. + + For a full list of the params, see the `HTTPX documentation `__. """ sync_client_kwargs: Optional[dict] = {} - """Additional kwargs to merge with client_kwargs before - passing to the httpx Client. - For a full list of the params, see [this link](https://www.python-httpx.org/api/#client) + """Additional kwargs to merge with client_kwargs before passing to the HTTPX Client. + + For a full list of the params, see the `HTTPX documentation `__. """ _client: Client = PrivateAttr(default=None) # type: ignore