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

This commit is contained in:
Mason Daugherty
2025-10-08 14:50:44 -04:00
committed by GitHub
parent 97f731da7e
commit b1acf8d931
5 changed files with 8 additions and 13 deletions

View File

@@ -168,8 +168,7 @@ def init_chat_model(
ValueError: If model_provider cannot be inferred or isn't supported. ValueError: If model_provider cannot be inferred or isn't supported.
ImportError: If the model provider integration package is not installed. ImportError: If the model provider integration package is not installed.
??? note "Init non-configurable model" ???+ note "Init non-configurable model"
:open:
.. code-block:: python .. code-block:: python

View File

@@ -155,8 +155,7 @@ def init_embeddings(
ValueError: If the model provider is not supported or cannot be determined ValueError: If the model provider is not supported or cannot be determined
ImportError: If the required provider package is not installed ImportError: If the required provider package is not installed
??? note "Example Usage" ???+ note "Example Usage"
:open:
.. code-block:: python .. code-block:: python

View File

@@ -32,7 +32,7 @@ def init_chat_model(
model: str, model: str,
*, *,
model_provider: str | None = None, model_provider: str | None = None,
configurable_fields: Literal[None] = None, configurable_fields: None = None,
config_prefix: str | None = None, config_prefix: str | None = None,
**kwargs: Any, **kwargs: Any,
) -> BaseChatModel: ... ) -> BaseChatModel: ...
@@ -40,10 +40,10 @@ def init_chat_model(
@overload @overload
def init_chat_model( def init_chat_model(
model: Literal[None] = None, model: None = None,
*, *,
model_provider: str | None = None, model_provider: str | None = None,
configurable_fields: Literal[None] = None, configurable_fields: None = None,
config_prefix: str | None = None, config_prefix: str | None = None,
**kwargs: Any, **kwargs: Any,
) -> _ConfigurableModel: ... ) -> _ConfigurableModel: ...
@@ -163,8 +163,7 @@ def init_chat_model(
ValueError: If model_provider cannot be inferred or isn't supported. ValueError: If model_provider cannot be inferred or isn't supported.
ImportError: If the model provider integration package is not installed. ImportError: If the model provider integration package is not installed.
??? note "Init non-configurable model" ???+ note "Init non-configurable model"
:open:
.. code-block:: python .. code-block:: python

View File

@@ -151,8 +151,7 @@ def init_embeddings(
ValueError: If the model provider is not supported or cannot be determined ValueError: If the model provider is not supported or cannot be determined
ImportError: If the required provider package is not installed ImportError: If the required provider package is not installed
??? note "Example Usage" ???+ note "Example Usage"
:open:
.. code-block:: python .. code-block:: python

View File

@@ -257,8 +257,7 @@ def _is_pydantic_class(obj: Any) -> bool:
class ChatOllama(BaseChatModel): class ChatOllama(BaseChatModel):
r"""Ollama chat model integration. r"""Ollama chat model integration.
??? note "Setup" ???+ note "Setup"
:open:
Install ``langchain-ollama`` and download any models you want to use from ollama. Install ``langchain-ollama`` and download any models you want to use from ollama.