[PR #3805] [CLOSED] ♻️ refactor: update langchain-python-simple to use the langchain_community #16556

Closed
opened 2026-04-16 05:34:44 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/3805
Author: @dkruyt
Created: 4/21/2024
Status: Closed

Base: mainHead: langchain_community


📝 Commits (1)

  • 0662b9b ♻️ refactor: update code to use the langchain_community library and adapt method calls for compatibility with the new library version

📊 Changes

2 files changed (+6 additions, -6 deletions)

View changed files

📝 examples/langchain-python-simple/main.py (+5 -5)
📝 examples/langchain-python-simple/requirements.txt (+1 -1)

📄 Description

  • import Ollama from langchain.llms is deprecated, change to langchain_community
  • predict is deprecated, use invoke

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/3805 **Author:** [@dkruyt](https://github.com/dkruyt) **Created:** 4/21/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `langchain_community` --- ### 📝 Commits (1) - [`0662b9b`](https://github.com/ollama/ollama/commit/0662b9b0435220f2ca70f816c4471bd2f8ac7cbe) ♻️ refactor: update code to use the langchain_community library and adapt method calls for compatibility with the new library version ### 📊 Changes **2 files changed** (+6 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `examples/langchain-python-simple/main.py` (+5 -5) 📝 `examples/langchain-python-simple/requirements.txt` (+1 -1) </details> ### 📄 Description * import Ollama from langchain.llms is deprecated, change to langchain_community * predict is deprecated, use invoke --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 05:34:44 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#16556