mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 00:28:31 +00:00
updating docs and readme
This commit is contained in:
@@ -62,7 +62,7 @@ from crewai import Agent, Task, Crew, Process
|
||||
os.environ["OPENAI_API_KEY"] = "YOUR_API_KEY"
|
||||
|
||||
# You can choose to use a local model through Ollama for example. See ./docs/how-to/llm-connections.md for more information.
|
||||
# from langchain.llms import Ollama
|
||||
# from langchain_community.llms import Ollama
|
||||
# ollama_llm = Ollama(model="openhermes")
|
||||
|
||||
# Install duckduckgo-search for this example:
|
||||
@@ -87,7 +87,7 @@ researcher = Agent(
|
||||
#
|
||||
# Examples:
|
||||
#
|
||||
# from langchain.llms import Ollama
|
||||
# from langchain_community.llms import Ollama
|
||||
# llm=ollama_llm # was defined above in the file
|
||||
#
|
||||
# from langchain_openai import ChatOpenAI
|
||||
|
||||
@@ -20,7 +20,7 @@ Ollama is preferred for local LLM integration, offering customization and privac
|
||||
Instantiate Ollama and pass it to your agents within CrewAI, enhancing them with the local model's capabilities.
|
||||
|
||||
```python
|
||||
from langchain.llms import Ollama
|
||||
from langchain_community.llms import Ollama
|
||||
|
||||
# Assuming you have Ollama installed and downloaded the openhermes model
|
||||
ollama_openhermes = Ollama(model="openhermes")
|
||||
|
||||
Reference in New Issue
Block a user