Skip to content

Commit

Permalink
removed dependency for ollama
Browse files Browse the repository at this point in the history
  • Loading branch information
assafelovic committed Feb 15, 2025
1 parent 4f901fb commit 953b758
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gpt_researcher/llm_provider/generic/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def from_provider(cls, provider: str, **kwargs: Any):
llm = ChatFireworks(**kwargs)
elif provider == "ollama":
_check_pkg("langchain_community")
_check_pkg("langchain_ollama")
from langchain_ollama import ChatOllama

llm = ChatOllama(base_url=os.environ["OLLAMA_BASE_URL"], **kwargs)
Expand Down

0 comments on commit 953b758

Please sign in to comment.