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.
|
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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user