mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[GH-ISSUE #17428] issue: Support Think Parsing with llama.cpp + GPT-OSS #56947
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 @AbdullahMPrograms on GitHub (Sep 14, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17428
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.28
Ollama Version (if applicable)
No response
Operating System
Linux
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When using GPT-OSS via llama.cpp, the thinking process of the models output should be encapsulated in OWUI "Thinking..." visual
Actual Behavior
Harmony format tokens such as "<|channel|>analysis<|message|>" and "|end|><|start|>assistant<|channel|>final<|message|>" are seen instead
Steps to Reproduce
Build llama.cpp 6464, launch llama-server as follows: ./llama-server -m /home/LLM/Models/ggml-org/gpt-oss-120b-GGUF/gpt-oss-120b-mxfp4-00001-of-00003.gguf -c 131072 -ngl 999 -b 2048 -ub 2048 -fa on --host 0.0.0.0 --port 8081 --chat-template-kwargs '{"reasoning_effort":"high"}', prompt "Tell me a random fun fact about the Roman Empire" (or any prompt), thinking component will not be parsed
Logs & Screenshots
Result with --jinja:

Result without --jinja:
--jinja is the recommended way to run GPT-OSS in llama.cpp as it allows passing --chat-template-kwargs '{"reasoning_effort":"high"}' to influence the reasoning effort, but including this flag results in no thinking tokens being shown in OWUI
Additional Information
No response
@tjbck commented on GitHub (Sep 15, 2025):
@AbdullahMPrograms does llama.cpp not support
reasoning_contentfield?