trying to deploy openhands with the gpt-5 , but I ...
# questions
r
trying to deploy openhands with the gpt-5 , but I am getting an error that the temperature is 0. Is there any way to set it via env-var or via the config.yml without having to also add my api key there?
l
LLM_TEMPERATURE I think
r
no luck 😕
Copy code
litellm.BadRequestError: OpenAIException - Unsupported value: 'temperature' does not support 0.0 with this model. Only the default (1) value is supported.. Received Model Group=openai/gpt-5
If this is it, my version is too old
l
https://docs.all-hands.dev/usage/configuration-options you can add it in the config file ([llm] section), you don't need to add anything else I think.
r
Just a block?
Copy code
[llm]
temperature=1
will try.
l
I think so.
It's strange though, because the docs say
To use these with the docker command, pass in -e LLM_<option>. Example: -e LLM_NUM_RETRIES.
so LLM_TEMPERATURE should have worked.
l
Ideally once we upgrade the version of litellm this should be fixed automatically, but the temperature would probably work
l
@rough-boots-51677 just to be sure (but you probably already know), if you're running the docker run command, you have to pass LLM_TEMPERATURE with the -e parameter.
r
@little-architect-38123 thanks for the heads up, I indeed forgot about the need to pass on the -e facepalm . that is probably the reason why it was failing... I will run a new build with this var being passed. thanks a mil!
🙏 1
Copy code
litellm.BadRequestError: OpenAIException - Unsupported parameter: 'stop' is not supported with this model.. Received Model Group=openai/gpt-5
Available Model Group Fallbacks=None LiteLLM Retried: 1 times, LiteLLM Max Retries: 2
The fun never stop :))
any idea how to fix this one? first time I face this 🤔
don't think drop_params would work , would it?
Copy code
drop_params=True,
    additional_drop_params=["stop"]
someone suggested this thinky spin
l
From the description on litellm website I think it could work. The problem though is how to pass the config.toml file if you're using the docker command. I'm not sure if placing it in the $HOME/.openhands directory would work.
@chilly-france-44439 it looks like o5 needs an exception in MODELS_WITHOUT_STOP_WORDS. Maybe it could be added before 0.52 release? Edit: it also needs TEMPERATURE=1, in case you don't read the whole thread, but the stop word is more blocking.
r
additional_drop_params (and dropping everything seems to have worked)
👍 1
l
Oh, so you're literally using a custom build then. I thought you were using the standard docker command.
Glad you already got it sorted out.
r
can't be much more custom than what I do lol. I do need to update my setup , you all released so much stuff that I can drop on my side.
I think we will have to expect a slight increase in latency.
🤯 1
:)))
also @limited-student-10747 was probably right... 25982(17559+8423) Of those 7k was reasoning.
I think we are charged as output right?
nod 2
l
r
Copy code
I'm blocked by a stuck long-running terminal process: the current shell session is not accepting new commands, and repeated attempts to interrupt it (empty input, C-c, C-d, C-z, extended wait) have not released control. Because I cannot execute any commands, I'm unable to complete the mandatory pre-checks
I guess I won't get much sleep today :)))
l
Is it just a long-running command, or is it really stuck?
r
I think I saw that before... it seems to be trying to do a lot of stuff per command.
seems a bit with what I saw with o4-mini.
it seems to be passing dozens and dozens of commands per line.
not sure if it is leaving some loose ( or if the timeout is too small for this huge command.
second run seems to be working... 9 min before the first message.
l
I don't know if this can help: https://github.com/All-Hands-AI/OpenHands/issues/10081 (the agent can set the timeout) There's also this env var: NO_CHANGE_TIMEOUT_SECONDS. Unfortunately I don't really know how the timeout system works, only one of the devs could answer this.
@rough-boots-51677 it's supported in main now, see https://github.com/All-Hands-AI/OpenHands/pull/10172 Edit: By the way, regarding the reasoning tokens, this might interest you, depending on your use case, now that proper support is available:
Copy code
# Reasoning effort for OpenAI o-series models (low, medium, high, or not set)
#reasoning_effort = "medium"
(can also be passed as env var using the LLM_ prefix)
❤️ 1