I think I figured out why R1-0528 is randomly stop...
# dev-help
c
I think I figured out why R1-0528 is randomly stopping the conversation. Open Hands appears to be sending this in the request:
Copy code
"temperature": 0.0,
        "top_p": 1.0,
        "stop": [
            "</function"
        ]
    }
The problem with that is this is a reasoning model, so it will say
</function
as it reasons within
<think></think>
tags: https://platform.openai.com/docs/api-reference/chat/create#chat_create-stop I believe the use of
stop
should be disabled for reasoning models.
c
👀 1
A PR is most welcome, if you wish!
c
I have to pick up my daughter from school, but I'll definitely play with this. I suspect it ultimately needs to be an Advanced model option in the UI.
n
I think you're right. I was looking at that as well.
openhands/llm/fn_call_converter.py
:
Copy code
root@Beepy:/data/OpenHands (openpaws)# ag "'</function'" openhands/llm/fn_call_converter.py
56:STOP_WORDS = ['</function']
c