updating docs and readme

This commit is contained in:
João Moura
2024-02-05 23:13:10 -08:00
parent d7f77b42bf
commit 1eed3a0378
2 changed files with 3 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ from crewai import Agent, Task, Crew, Process
os.environ["OPENAI_API_KEY"] = "YOUR_API_KEY" 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. # 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") # ollama_llm = Ollama(model="openhermes")
# Install duckduckgo-search for this example: # Install duckduckgo-search for this example:
@@ -87,7 +87,7 @@ researcher = Agent(
# #
# Examples: # Examples:
# #
# from langchain.llms import Ollama # from langchain_community.llms import Ollama
# llm=ollama_llm # was defined above in the file # llm=ollama_llm # was defined above in the file
# #
# from langchain_openai import ChatOpenAI # from langchain_openai import ChatOpenAI

View File

@@ -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. Instantiate Ollama and pass it to your agents within CrewAI, enhancing them with the local model's capabilities.
```python ```python
from langchain.llms import Ollama from langchain_community.llms import Ollama
# Assuming you have Ollama installed and downloaded the openhermes model # Assuming you have Ollama installed and downloaded the openhermes model
ollama_openhermes = Ollama(model="openhermes") ollama_openhermes = Ollama(model="openhermes")