What am I doing wrong here with the SDK and the Op...
# questions
w
What am I doing wrong here with the SDK and the OpenHands LLM?
Copy code
llm = LLM(
            model="openhands/claude-sonnet-4-20250514",
            api_key=api_key,
            base_url="<https://llm-proxy.app.all-hands.dev>"
        )
gives
Copy code
Connection test failed: litellm.BadRequestError: LLM Provider NOT provided. Pass in the LLM provider you are trying to call. You passed model=openhands/claude-sonnet-4-20250514
 Pass model as E.g. For 'Huggingface' inference endpoints pass in `completion(model='huggingface/starcoder',..)` Learn more: <https://docs.litellm.ai/docs/providers>
q
i think model may need to be
litellm_proxy/claude-sonnet-4-20250514
instead?
👀 1
w
same issue 😞
c
I think you don’t need to set the base url if you are using”openhands/“ but these does look pretty weird
c
This script worked for me (and for the agent): https://gist.github.com/enyst/b4bf37d47d5022df716ddfd261ad6a3e Yes you don't need to set base url, but it doesn't hurt either... The error "You passed model=openhands/" says that litellm proxy received "openhands/" which it shouldn't. So this mapping code to "litellm_proxy/" didn't run: https://github.com/OpenHands/software-agent-sdk/blob/c196a24148b53485127a53b1de0ba4262013343c/openhands-sdk/openhands/sdk/llm/llm.py#L354 But I don't understand why... How do I replicate? The agent tried a bunch of combinations with/without base url, model names, and they work...