Open slashtechno opened 1 month ago
Hey @slashtechno, could you please try running the following code:
from phi.assistant import Assistant
from phi.tools.duckduckgo import DuckDuckGo
from phi.llm.ollama import Ollama
model = "llama3"
assistant = Assistant(
llm=Ollama(model=model),
tools=[DuckDuckGo(search=True, news=True)],
show_tool_calls=False,
read_chat_history=True,
read_tool_call_history=True,
)
assistant.cli_app(markdown=False)
I'm currently travelling and won't have access to my machine with Ollama for a while, sorry. Is the only change using Ollama
instead of OllamaTools
? If I rememeber correctly, I tried Ollama
with llama3
to no avail.
I've been testing Phidata with Ollama. Whilst the code sometimes works, trying to perform a query using the LLM often results in it calling
duckduckgo_search
without any arguments, causing an error.Here's the code I'm using: