langflow-ai / langflow

⛓️ Langflow is a dynamic graph where each node is an executable unit. Its modular and interactive design fosters rapid experimentation and prototyping, pushing hard on the limits of creativity.
http://www.langflow.org
MIT License
17.87k stars 2.68k forks source link

Ollama Error #1807

Open VinojRaj opened 2 weeks ago

VinojRaj commented 2 weeks ago

Discussed in https://github.com/langflow-ai/langflow/discussions/1804

Originally posted by **VinojRaj** April 30, 2024 I am new to Langflow and I was trying to use Llama2 through Ollama as the model but I am getting the following error: ValueError: Error building vertex Ollama: ChatOllamaComponent.build() missing 1 required positional argument: 'base_url' The base url is default on http://localhost:11434/
qwaszaq commented 2 weeks ago

I have the same ...

qwaszaq commented 2 weeks ago

it seems to be working now :)

AngelDPena commented 2 weeks ago

Hi, I'm no expert in langflow but I had a similar issue. Can you describe your langflow deployment? Are you using docker or running on your local machine? Have you tried to make post requests using postman to Ollama?

In my case it was a network related error, and I was running langflow and ollama in separate docker containers. Nothing that creating a network and running both in the same network can't fix. But I would need more details to tell what could be happening on your side (reference images on the error would be much appreciated).

qwaszaq commented 2 weeks ago

I bet this is an update that might have changed a bug or any other issue I am not familiar with. I have Ollama running on http://127.0.0.1:11434, which is typical, but yesterday there was an error, at midnight it changed ;). One remark, I am not running the app in a container...

RaminParker commented 2 weeks ago

I am running langflow locally on my computer. I have the same problem. What exactly is the base_url?

JavierCCC commented 2 weeks ago

same problem here. Trying to run a rag flow using ollama.