Replace placeholders (e.g., [e.g., Ubuntu 22.04]) with your actual environment details.
Attach logs/screenshots if available.
This version is concise, uses code blocks for clarity, and highlights the core issue. Adjust as needed!
Originally created by @Lesiuk on GitHub (Feb 5, 2025).
# Bug Report
**Summary**: Open WebUI fails to display Deepseek API's `reasoning_content` due to field mismatch.
## Environment
- **Installation Method**: Docker (replace with your method)
- **Open WebUI Version**: [e.g., v0.3.11]
- **Ollama (if applicable)**: [N/A or version]
- **Operating System**: [e.g., Ubuntu 22.04]
- **Browser**: [e.g., Chrome 120.0]
**Confirmation**:
- [x] Read README.md instructions
- [x] Latest Open WebUI version
- [ ] Browser/Docker logs included (if applicable)
## Expected Behavior
- Reasoning content from Deepseek API should appear in Open WebUI within ``
<details type="reasoning" done="false">
<summary>Thinking…</summary>
> tags (e.g., `Okay, ...
</details>
`).
## Actual Behavior
- Reasoning content is **not displayed** because Deepseek returns it in a `reasoning_content` field instead of populating `content`.
## Reproduction Steps
1. Send a request to Deepseek's API (e.g., via Open WebUI).
2. Observe the API response format:
```json
{
"choices": [
{
"delta": {
"reasoning_content": "Okay, ..." // Problematic field
}
}
]
}
```
3. Open WebUI ignores `reasoning_content`, leaving the reasoning steps invisible.
## Proposed Fix
- Update Open WebUI to parse `reasoning_content` **or** map it to the existing `content` field.
## Additional Details
- Example API response snippet showing `reasoning_content` usage:
```
data: {"choices":[{"delta":{"reasoning_content":"Okay"}}]}
data: {"choices":[{"delta":{"reasoning_content":","}}]}
```
---
**Notes for Submitter**:
- Replace placeholders (e.g., `[e.g., Ubuntu 22.04]`) with your actual environment details.
- Attach logs/screenshots if available.
This version is concise, uses code blocks for clarity, and highlights the core issue. Adjust as needed!
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @Lesiuk on GitHub (Feb 5, 2025).
Bug Report
Summary: Open WebUI fails to display Deepseek API's
reasoning_contentdue to field mismatch.Environment
Confirmation:
Expected Behavior
Thinking…
> tags (e.g., `Okay, ...Actual Behavior
reasoning_contentfield instead of populatingcontent.Reproduction Steps
reasoning_content, leaving the reasoning steps invisible.Proposed Fix
reasoning_contentor map it to the existingcontentfield.Additional Details
reasoning_contentusage:Notes for Submitter:
[e.g., Ubuntu 22.04]) with your actual environment details.This version is concise, uses code blocks for clarity, and highlights the core issue. Adjust as needed!
@Lesiuk commented on GitHub (Feb 5, 2025):
You can read about it here; https://api-docs.deepseek.com/guides/reasoning_model