Skip to content

The agent engineering platform.

chore: fix dropdown default open admonition in refs (#33354)

Mason Daughertyb1acf8d93102
diff --git a/libs/langchain/langchain_classic/chat_models/base.py b/libs/langchain/langchain_classic/chat_models/base.py
index 2bc4e3171a..d0ffb2002f 100644
--- a/libs/langchain/langchain_classic/chat_models/base.py
+++ b/libs/langchain/langchain_classic/chat_models/base.py
@@ -168,8 +168,7 @@ def init_chat_model(
ValueError: If model_provider cannot be inferred or isn't supported.
ImportError: If the model provider integration package is not installed.
- ??? note "Init non-configurable model"
- :open:
+ ???+ note "Init non-configurable model"
.. code-block:: python
diff --git a/libs/langchain/langchain_classic/embeddings/base.py b/libs/langchain/langchain_classic/embeddings/base.py
index a8a62ac084..887a3c33ef 100644
--- a/libs/langchain/langchain_classic/embeddings/base.py
+++ b/libs/langchain/langchain_classic/embeddings/base.py
@@ -155,8 +155,7 @@ def init_embeddings(
ValueError: If the model provider is not supported or cannot be determined
ImportError: If the required provider package is not installed
- ??? note "Example Usage"
- :open:
+ ???+ note "Example Usage"
.. code-block:: python
diff --git a/libs/langchain_v1/langchain/chat_models/base.py b/libs/langchain_v1/langchain/chat_models/base.py
index 91ce6b668a..618ebd681c 100644
--- a/libs/langchain_v1/langchain/chat_models/base.py
+++ b/libs/langchain_v1/langchain/chat_models/base.py
@@ -32,7 +32,7 @@ def init_chat_model(
model: str,
*,
model_provider: str | None = None,
- configurable_fields: Literal[None] = None,
+ configurable_fields: None = None,
config_prefix: str | None = None,
**kwargs: Any,
) -> BaseChatModel: ...
@@ -40,10 +40,10 @@ def init_chat_model(
@overload
def init_chat_model(
- model: Literal[None] = None,
+ model: None = None,
*,
model_provider: str | None = None,
- configurable_fields: Literal[None] = None,
+ configurable_fields: None = None,
config_prefix: str | None = None,
**kwargs: Any,
) -> _ConfigurableModel: ...
@@ -163,8 +163,7 @@ def init_chat_model(
ValueError: If model_provider cannot be inferred or isn't supported.
ImportError: If the model provider integration package is not installed.
- ??? note "Init non-configurable model"
- :open:
+ ???+ note "Init non-configurable model"
.. code-block:: python
diff --git a/libs/langchain_v1/langchain/embeddings/base.py b/libs/langchain_v1/langchain/embeddings/base.py
index 05559f7cd3..598b721d15 100644
--- a/libs/langchain_v1/langchain/embeddings/base.py
+++ b/libs/langchain_v1/langchain/embeddings/base.py
@@ -151,8 +151,7 @@ def init_embeddings(
ValueError: If the model provider is not supported or cannot be determined
ImportError: If the required provider package is not installed
- ??? note "Example Usage"
- :open:
+ ???+ note "Example Usage"
.. code-block:: python
diff --git a/libs/partners/ollama/langchain_ollama/chat_models.py b/libs/partners/ollama/langchain_ollama/chat_models.py
index 491ea132e5..3baf00942e 100644
--- a/libs/partners/ollama/langchain_ollama/chat_models.py
+++ b/libs/partners/ollama/langchain_ollama/chat_models.py
@@ -257,8 +257,7 @@ def _is_pydantic_class(obj: Any) -> bool:
class ChatOllama(BaseChatModel):
r"""Ollama chat model integration.
- ??? note "Setup"
- :open:
+ ???+ note "Setup"
Install ``langchain-ollama`` and download any models you want to use from ollama.