OpenHands
OpenHands copied to clipboard
[Bug]: ollama not wroking
Is there an existing issue for the same bug?
- [X] I have checked the troubleshooting document at https://docs.all-hands.dev/modules/usage/troubleshooting
- [X] I have checked the existing issues.
Describe the bug
when i start openhands with ollama it just doesnt work
Current OpenHands version
ghcr.io/all-hands-ai/openhands
Installation and Configuration
ollama serve
# The directory you want OpenHands to modify. MUST be an absolute path!
export WORKSPACE_BASE=$(pwd)/workspace
docker run \
-it \
--pull=always \
--add-host host.docker.internal:host-gateway \
-e SANDBOX_USER_ID=$(id -u) \
-e LLM_API_KEY="ollama" \
-e LLM_BASE_URL="http://host.docker.internal:11434" \
-e LLM_OLLAMA_BASE_URL="http://host.docker.internal:11434" \
-e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE \
-v $WORKSPACE_BASE:/opt/workspace_base \
-v /var/run/docker.sock:/var/run/docker.sock \
-p 3000:3000 \
ghcr.io/all-hands-ai/openhands:main
Model and Agent
model: deepseek-coder-v2:latest
Operating System
linux chachyos
Reproduction Steps
i dont know how to reproduce on other installs
Logs, Errors, Screenshots, and Additional Context
https://discord.com/channels/1222935860639563850/1281641914210455643