-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Add llm disable stop word env var #10274
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
Add llm disable stop word env var #10274
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM-- We can merge this once you confirmed this works for you
openhands/core/config/llm_config.py
Outdated
# Note: this setting is actually global, unlike drop_params | ||
modify_params: bool = Field(default=True) | ||
disable_vision: bool | None = Field(default=None) | ||
disable_stop_word: bool | None = Field(default=None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's just default it to false?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed in 005674c
Confirmed. It works with R1-0528 locally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
Summarize what the PR does, explaining any non-trivial design decisions.
This PR adds the
LLM_DISABLE_STOP_WORD
env var. When this env var is set totrue
, Open Hands will not populate the stop property in the request. This addresses #10158.