Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Langchain code module deprecated #5

Open
Raveendiran-RR opened this issue Oct 27, 2024 · 0 comments
Open

Langchain code module deprecated #5

Raveendiran-RR opened this issue Oct 27, 2024 · 0 comments

Comments

@Raveendiran-RR
Copy link

The Lanchani module used is deprecated for OLLAMA. Please update the code
error :


LangChainDeprecationWarning: The class Ollama was deprecated in LangChain 0.3.1 and will be removed in 1.0.0. An updated version of the class exists in the :class:~langchain-ollama package and should be used instead. To use it run pip install -U :class:~langchain-ollama and import as from :class:~langchain_ollama import OllamaLLM``.
llm = Ollama(model="llama3.2:latest",
LangChainDeprecationWarning: The method BaseLLM.__call__ was deprecated in langchain-core 0.1.7 and will be removed in 1.0. Use :meth:`~invoke` instead.
slide_data.append(extract_items(llm(f"""


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant