mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
chore: fix dropdown default open admonition in refs (#33354)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user