jolly-piano-78758
06/06/2026, 7:47 PMlitellm.InternalServerError: InternalServerError: OpenAIException - Connection error.) How do I debug this?calm-artist-7206
06/06/2026, 7:51 PMjolly-piano-78758
06/06/2026, 7:53 PMjolly-piano-78758
06/06/2026, 7:53 PMjolly-piano-78758
06/06/2026, 7:54 PMcalm-artist-7206
06/06/2026, 7:54 PMjolly-piano-78758
06/06/2026, 7:55 PMjolly-piano-78758
06/06/2026, 7:55 PMjolly-piano-78758
06/06/2026, 7:57 PM{
"error": "Unexpected endpoint or method. (GET /)"
}jolly-piano-78758
06/06/2026, 7:57 PMcalm-artist-7206
06/06/2026, 7:59 PMjolly-piano-78758
06/06/2026, 8:00 PMcalm-artist-7206
06/06/2026, 8:00 PMjolly-piano-78758
06/06/2026, 8:00 PMjolly-piano-78758
06/06/2026, 8:00 PMjolly-piano-78758
06/06/2026, 8:01 PMcalm-artist-7206
06/06/2026, 8:02 PMjolly-piano-78758
06/06/2026, 8:02 PMcalm-artist-7206
06/06/2026, 8:03 PMjolly-piano-78758
06/06/2026, 8:05 PMjolly-piano-78758
06/06/2026, 8:06 PMcool-action-19612
06/06/2026, 8:06 PMcurl <http://127.0.0.1:1234/v1/models>
that'll show you exactly what to put after openai/
then the real fix is probably two parts. on linux host.docker.internal doesn't resolve by default like it does on mac/windows, so the openhands container literally can't find your host. add this to the docker run command: --add-host host.docker.internal:host-gateway
and lmstudio by default usually only binds to 127.0.0.1 which a container can't reach anyway. flip it to serve on 0.0.0.0 (there's a network/serve on local network toggle in the server settings)
once both of those are sorted set the model to openai/ + whatever id the /v1/models call gave you. wouldn't drop the qwen/ bit unless the model id actually doesn't have itjolly-piano-78758
06/06/2026, 8:08 PM"data": [
{
"id": "qwen/qwen3.6-35b-a3b",
"object": "model",
"owned_by": "organization_owner"
},
{
"id": "text-embedding-nomic-embed-text-v1.5",
"object": "model",
"owned_by": "organization_owner"
}
],
"object": "list"
Restarting openhands...jolly-piano-78758
06/06/2026, 8:09 PMcool-action-19612
06/06/2026, 8:09 PMdocker exec -it <openhands-container-name> curl -s <http://host.docker.internal:1234/v1/models>
if that hangs or errors it's the bind. if it returns the model list then networking's fine and we look elsewherejolly-piano-78758
06/06/2026, 8:09 PMjolly-piano-78758
06/06/2026, 8:10 PMjolly-piano-78758
06/06/2026, 8:10 PMcool-action-19612
06/06/2026, 8:11 PMcool-action-19612
06/06/2026, 8:11 PMjolly-piano-78758
06/06/2026, 8:12 PMjolly-piano-78758
06/06/2026, 8:12 PMcool-action-19612
06/06/2026, 8:13 PMjolly-piano-78758
06/06/2026, 8:16 PMjolly-piano-78758
06/06/2026, 8:17 PMjolly-piano-78758
06/06/2026, 8:19 PMcalm-artist-7206
06/06/2026, 8:20 PMhttps://openhands-ai.slack.com/archives/C06U8UTKSAD/p1780776821712289?thread_ts=1780775260.704799&channel=C06U8UTKSAD&message_ts=1780776821.712289
jolly-piano-78758
06/06/2026, 8:21 PMjolly-piano-78758
06/06/2026, 8:22 PMjolly-piano-78758
06/06/2026, 8:23 PMjolly-piano-78758
06/06/2026, 8:23 PMjolly-piano-78758
06/06/2026, 8:23 PMjolly-piano-78758
06/06/2026, 8:23 PMcalm-artist-7206
06/06/2026, 8:23 PMcalm-artist-7206
06/06/2026, 8:24 PMjolly-piano-78758
06/06/2026, 8:24 PMjolly-piano-78758
06/06/2026, 8:26 PMbland-bear-604
06/06/2026, 8:26 PMdocker exec curl command to verify connectivity.cool-action-19612
06/06/2026, 9:12 PM