mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-06 11:37:12 +00:00
deprecating ollama_functions (#24632)
This commit is contained in:
parent
0fdbaf4a8d
commit
5c7e589aaf
@ -284,7 +284,9 @@
|
|||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": "For more on binding tools and tool call outputs, head to the [tool calling](docs/how_to/function_calling) docs."
|
"source": [
|
||||||
|
"For more on binding tools and tool call outputs, head to the [tool calling](../../how_to/function_calling.ipynb) docs."
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
|
@ -15,6 +15,7 @@ from typing import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
from langchain_community.chat_models.ollama import ChatOllama
|
from langchain_community.chat_models.ollama import ChatOllama
|
||||||
|
from langchain_core._api import deprecated
|
||||||
from langchain_core.callbacks import (
|
from langchain_core.callbacks import (
|
||||||
AsyncCallbackManagerForLLMRun,
|
AsyncCallbackManagerForLLMRun,
|
||||||
CallbackManagerForLLMRun,
|
CallbackManagerForLLMRun,
|
||||||
@ -132,6 +133,9 @@ def parse_response(message: BaseMessage) -> str:
|
|||||||
raise ValueError(f"`message` is not an instance of `AIMessage`: {message}")
|
raise ValueError(f"`message` is not an instance of `AIMessage`: {message}")
|
||||||
|
|
||||||
|
|
||||||
|
@deprecated( # type: ignore[arg-type]
|
||||||
|
since="0.0.64", removal="0.4.0", alternative_import="langchain_ollama.ChatOllama"
|
||||||
|
)
|
||||||
class OllamaFunctions(ChatOllama):
|
class OllamaFunctions(ChatOllama):
|
||||||
"""Function chat model that uses Ollama API."""
|
"""Function chat model that uses Ollama API."""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user