Skip to content

Commit

Permalink
deprecating ollama_functions (#24632)
Browse files Browse the repository at this point in the history
  • Loading branch information
isahers1 authored Jul 25, 2024
1 parent 0fdbaf4 commit 5c7e589
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/docs/integrations/chat/ollama_functions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@
{
"cell_type": "markdown",
"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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
)

from langchain_community.chat_models.ollama import ChatOllama
from langchain_core._api import deprecated
from langchain_core.callbacks import (
AsyncCallbackManagerForLLMRun,
CallbackManagerForLLMRun,
Expand Down Expand Up @@ -132,6 +133,9 @@ def parse_response(message: BaseMessage) -> str:
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):
"""Function chat model that uses Ollama API."""

Expand Down

0 comments on commit 5c7e589

Please sign in to comment.