-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help to get OpenHands working with local LLM #6918
Comments
Please check out this, we've been trying to gather instructions that work, depending how you're running. Just in case it may matter (maybe it doesn't), you may want to try running with the command in the README in this repo. |
Sadly I'm getting the same error, I tried running the container using "Docker run" instead of compose. Attempt #1
Attempt #2
|
Not sure what the problem is, but just double-checking: it does need http://host.docker.internal:11434 as Could you please also double-check this section: https://docs.all-hands.dev/modules/usage/llms/local-llms#configuring-ollama-service-wsl-en |
Oh shit, I missed the the fixing of the WSL stuff. Now tho when I prompt stuff I get this:
EDIT: Seems to be an issue when using ollama\llama3:latest |
That one is from the LLM itself. I'm afraid openhands needs a relatively powerful LLM that obeys instructions. I don't know the quirks of llama3, maybe it's temporary? I mean, you could perhaps tell the LLM to pay attention to the exact definitions it needs to follow? |
Hey,
I'm having some trouble getting OpenHands working with local ollama instance.
My whole setup is running on WSL in Ubuntu machine.
Ollama:
I installed ollama using the default command from their website:
curl -fsSL https://ollama.com/install.sh | sh
These are models I have installed:
Open WebUi:
Installied by following NetworkChuks's instructions, this is the docker container run command:
docker run -d --network=host -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://127.0.0.1:11434 --name open-webui --restart always ghcr.io/open-webui/open-webui:main
OpenHands
For OpenHands I used Docker compose:
OpenHands provider settings:
One thing I'm not sure is the API key, as I've not set one up at any point, but according to things I found online, setting it to "ollama" should be good enough. This might be complitely wrong.
When I type my prompt for OpenHands, this the error I get:
RuntimeError: There was an unexpected error while running the agent. Please report this error to the developers. Your session ID is 6909e00c6e9c41d9a1660ae705ad26c7. Error type: APIConnectionError
The text was updated successfully, but these errors were encountered: