mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
feat: Support Magistral models (keeping reasoning traces) #5535
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Tureti on GitHub (Jun 13, 2025).
Check Existing Issues
Problem Description
The new Magistral model seems to want it's own reasoning to stay in context, even though with most other reasoning models you should only keep the final answer. I haven't found a setting in Open-WebUI to change that behavior as it always removes the part inside the tags from the conversation.
Desired Solution you'd like
Add a toggle to choose whether the reasoning should be kept or excluded from the conversation.
Alternatives Considered
No response
Additional Context
No response
@gaby commented on GitHub (Jun 14, 2025):
@Tureti Is this why the model goes into an infinite loop? I can't get it to work with OWUI.
I keeps "thinking" about the same thing in an endless loop.
@Tureti commented on GitHub (Jun 14, 2025):
@gaby I don't think that this has anything to do with the looping. If you are using a quantized version of the small model maybe this helps you. It's from the Qwen team about their own reasoning models, but might help:
@gaby commented on GitHub (Jun 14, 2025):
@Tureti I'm not using the GGUF version. I'm serving the model using the official instructions from
MistralwithvLLM.When prompting it from
Open-WebUIit goes into an infinite loop thinking.EDIT: It might be a
vLLMissue, this person reported the same issue https://huggingface.co/mistralai/Magistral-Small-2506/discussions/15@Tureti commented on GitHub (Jun 14, 2025):
@gaby Okay. As long as it does this in the first message as well (first one is unaffected by this open-webui behavior), it has nothing to do with this issue. If it only happens after multiple turns then it might be affected, but I'm honestly not sure if it could cause looping.