-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Bug]: Cannot reliably interface with local LLM when agent is built from source #258
Comments
Do you mean to run: curl base_url |
|
huh avi12@avi12:~/OpenHands$ curl 127.0.0.1:1234/v1
curl: (7) Failed to connect to 127.0.0.1 port 1234 after 0 ms: Connection refused
avi12@avi12:~/OpenHands$ curl http://127.0.0.1:1234/v1
curl: (7) Failed to connect to 127.0.0.1 port 1234 after 0 ms: Connection refused
avi12@avi12:~/OpenHands$ curl http://host.internal.docker:1234/v1
curl: (6) Could not resolve host: host.internal.docker |
Run the following commands in cmd to set up the networking mode of WSL to mirrored: python -c "print('[wsl2]\nnetworkingMode=mirrored',file=open(r'%UserProfile%\.wslconfig','w'))"
wsl --shutdown |
It seems like it worked and after the shutdown, Docker Desktop asked me to restart WSL, I hit restart and then I could do curl host.docker.internal:1234/v1 and it didn't return an error |
|
No, only |
I tried the following combinations for which model to specify:
2 and 4 trigger an error, saying that it cannot interface with the model |
https://docs.litellm.ai/docs/providers/lm_studio#sample-usage lm_studio/{model_name} host.docker.internal:1234/v1/models to see the model name. |
I'm so confused |
In cmd, |
avi12@avi12:~/OpenHands$ curl localhost:8000
curl: (7) Failed to connect to localhost port 8000 after 0 ms: Connection refused |
What do I do? |
curl to the local IP address of windows works in WSL? |
it doesn't |
Did you check this? |
I did, I assume I have to run in the WSL terminal sudo systemctl mask systemd-networkd which I did, but even restarting the terminal results in avi12@avi12:~/OpenHands$ curl 127.0.0.1:8000
curl: (7) Failed to connect to 127.0.0.1 port 8000 after 0 ms: Connection refused |
It should be discussed in the WSL repo. |
Does |
in [wsl2]
networkingMode=mirrored
hostAddressLoopback=true then from PowerShell I did wsl --shutdown then I tried to |
yep
|
After digging into the WSL config docs, it seems like I guess so long I'm on Windows 10 due to my old hardware, my only option is to use services like Ngrok |
But this works in Windows 10. |
I couldn't manage to get it working, unless it can work in WSL1, certainly not in WSL2 |
All-Hands-AI#6643 Issue
@avi12, Does `curl base_url work in WSL terminal?
The text was updated successfully, but these errors were encountered: