mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 08:21:12 -05:00
[GH-ISSUE #9192] <Thinking> tag NOT showing for Deepseek Reasoner API, but does show for local distill models #15419
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 @nikogiraud on GitHub (Jan 31, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/9192
Bug Report
Important Notes
Collaborate respectfully: We value a constructive attitude, so please be mindful of your communication. If negativity is part of your approach, our capacity to engage may be limited. We’re here to help if you’re open to learning and communicating positively. Remember, Open WebUI is a volunteer-driven project managed by a single maintainer and supported by contributors who also have full-time jobs. We appreciate your time and ask that you respect ours.
Contributing: If you encounter an issue, we highly encourage you to submit a pull request or fork the project. We actively work to prevent contributor burnout to maintain the quality and continuity of Open WebUI.
Bug reproducibility: If a bug cannot be reproduced with a
:mainor:devDocker setup, or a pip install with Python 3.11, it may require additional help from the community. In such cases, we will move it to the "issues" Discussions section due to our limited resources. We encourage the community to assist with these issues. Remember, it’s not that the issue doesn’t exist; we need your help!Note: Please remove the notes above when submitting your post. Thank you for your understanding and support!
Installation Method
Standard Quick Start Guide Docker Install: https://docs.openwebui.com/getting-started/quick-start
Environment
Confirmation:
Expected Behavior:
Expected dropdown to show. Since thinking tokens are counted as output tokens, it's important that we see what we're paying for.
Actual Behavior:
is omitted from deepseek-reasoner model
Description
Bug Summary:
The output does not show for the official remote Deepseek Reasoner API calls, but it does show for locally run distill models. This leads me to believe that Open WebUI is not handling the output from the api properly or Deepseek Reasoner may have a non-standard output.
Reproduction Details
Steps to Reproduce:
How to reproduce:
Logs and Screenshots
Browser Console Logs:
{id: '8fde7a07-9738-4e8c-bf88-649d58d5fc7e', object: 'chat.completion.chunk', created: 1738362000, model: 'deepseek-reasoner', system_fingerprint: 'fp_7e73fd9a08', …}choices: [{…}]0: {index: 0, delta: {…}, logprobs: null, finish_reason: 'stop'}delta: {content: '', reasoning_content: null}finish_reason: "stop"index: 0logprobs: nullPrototype: Objectconstructor: ƒ Object()hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()defineGetter: ƒ defineGetter()defineSetter: ƒ defineSetter()lookupGetter: ƒ lookupGetter()lookupSetter: ƒ lookupSetter()proto: (...)get proto: ƒ proto()set proto: ƒ proto()length: 1Prototype: Array(0)created: 1738362000id: "8fde7a07-9738-4e8c-bf88-649d58d5fc7e"model: "deepseek-reasoner"object: "chat.completion.chunk"system_fingerprint: "fp_7e73fd9a08"usage: completion_tokens: 96completion_tokens_details: reasoning_tokens: 82Prototype: Objectprompt_cache_hit_tokens: 0prompt_cache_miss_tokens: 6prompt_tokens: 6prompt_tokens_details: {cached_tokens: 0}total_tokens: 102Prototype: ObjectPrototype: Object
Chat.svelte:230 {chat_id: '68101afe-7fbe-4246-bc64-e22dd0321366', message_id: '8b36ddbb-84fc-42d9-af84-d28c3fbfb721', data: {…}}chat_id: "68101afe-7fbe-4246-bc64-e22dd0321366"data: data: content: "Hey there! How can I assist you today? 😊"done: truetitle: "New Chat"Prototype: Objecttype: "chat:completion"Prototype: Objectmessage_id: "8b36ddbb-84fc-42d9-af84-d28c3fbfb721"Prototype: Object
Chat.svelte:1213 {done: true, content: 'Hey there! How can I assist you today? 😊', title: 'New Chat'}content: "Hey there! How can I assist you today? 😊"done: truetitle: "New Chat"Prototype: Object
+layout.svelte:98 usage {models: Array(1)}models: ['deepseek-reasoner']Prototype: Object
+layout.svelte:98 usage {models: Array(0)}models: []Prototype: Object
Chat.svelte:230 {chat_id: '68101afe-7fbe-4246-bc64-e22dd0321366', message_id: '8b36ddbb-84fc-42d9-af84-d28c3fbfb721', data: {…}}chat_id: "68101afe-7fbe-4246-bc64-e22dd0321366"data: {type: 'chat:title', data: '👋 Friendly Greeting Exchange'}message_id: "8b36ddbb-84fc-42d9-af84-d28c3fbfb721"Prototype: Object
Chat.svelte:230
Docker Container Logs:
2025-01-31 16:57:56 INFO: 172.17.0.1:55276 - "GET /api/v1/chats/?page=2 HTTP/1.1" 200 OK
2025-01-31 17:19:53 INFO: 172.17.0.1:57536 - "GET /c/26a49e59-b571-4089-9c96-94896ddae6e1 HTTP/1.1" 304 Not Modified
2025-01-31 17:19:53 INFO: 172.17.0.1:57536 - "GET /api/config HTTP/1.1" 200 OK
2025-01-31 17:19:53 INFO: 172.17.0.1:57552 - "GET /static/favicon.png HTTP/1.1" 304 Not Modified
2025-01-31 17:19:53 INFO: 172.17.0.1:57536 - "GET /api/v1/auths/ HTTP/1.1" 200 OK
2025-01-31 17:19:53 INFO: 172.17.0.1:57536 - "GET /api/config HTTP/1.1" 200 OK
2025-01-31 17:19:53 INFO: 172.17.0.1:57536 - "GET /api/changelog HTTP/1.1" 200 OK
2025-01-31 17:19:53 INFO: 172.17.0.1:57552 - "GET /api/v1/users/user/settings HTTP/1.1" 200 OK
2025-01-31 17:19:54 INFO: 172.17.0.1:57552 - "GET /api/models HTTP/1.1" 200 OK
2025-01-31 17:19:54 INFO: 172.17.0.1:57552 - "GET /api/v1/configs/banners HTTP/1.1" 200 OK
2025-01-31 17:19:54 INFO: 172.17.0.1:57552 - "GET /api/v1/tools/ HTTP/1.1" 200 OK
2025-01-31 17:19:54 INFO: 172.17.0.1:57536 - "GET /api/v1/chats/26a49e59-b571-4089-9c96-94896ddae6e1 HTTP/1.1" 200 OK
2025-01-31 17:19:54 INFO: 172.17.0.1:57586 - "GET /static/favicon.png HTTP/1.1" 304 Not Modified
2025-01-31 17:19:54 INFO: 172.17.0.1:57572 - "GET /api/v1/channels/ HTTP/1.1" 200 OK
2025-01-31 17:19:54 INFO: 172.17.0.1:57536 - "GET /api/v1/chats/26a49e59-b571-4089-9c96-94896ddae6e1/tags HTTP/1.1" 200 OK
2025-01-31 17:19:54 INFO: 172.17.0.1:57572 - "GET /api/v1/chats/all/tags HTTP/1.1" 200 OK
2025-01-31 17:19:54 INFO: 172.17.0.1:57536 - "GET /api/v1/users/user/settings HTTP/1.1" 200 OK
2025-01-31 17:19:54 INFO: 172.17.0.1:57572 - "GET /api/v1/chats/pinned HTTP/1.1" 200 OK
2025-01-31 17:19:54 INFO: 172.17.0.1:57572 - "GET /ollama/api/version HTTP/1.1" 500 Internal Server Error
2025-01-31 17:19:54 INFO: 172.17.0.1:57572 - "GET /api/v1/folders/ HTTP/1.1" 200 OK
2025-01-31 17:19:54 INFO: 172.17.0.1:57536 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
2025-01-31 17:19:54 INFO: 172.17.0.1:57552 - "GET /api/version/updates HTTP/1.1" 200 OK
2025-01-31 17:19:54 INFO: 172.17.0.1:57552 - "GET /api/v1/chats/?page=2 HTTP/1.1" 200 OK
2025-01-31 17:19:57 INFO: 172.17.0.1:57552 - "GET /_app/immutable/nodes/5.DAyUEDYp.js HTTP/1.1" 200 OK
2025-01-31 17:19:57 INFO: 172.17.0.1:57536 - "GET /_app/immutable/nodes/19.Bb8yOzip.js HTTP/1.1" 200 OK
2025-01-31 17:19:57 INFO: 172.17.0.1:57536 - "GET /_app/immutable/nodes/19.Bb8yOzip.js.map HTTP/1.1" 200 OK
2025-01-31 17:19:57 INFO: 172.17.0.1:57552 - "GET /_app/immutable/nodes/5.DAyUEDYp.js.map HTTP/1.1" 200 OK
2025-01-31 17:19:58 INFO: 172.17.0.1:57552 - "GET /ollama/api/version HTTP/1.1" 500 Internal Server Error
2025-01-31 17:19:58 INFO: 172.17.0.1:57552 - "GET /static/favicon.png HTTP/1.1" 304 Not Modified
2025-01-31 17:19:58 INFO: 172.17.0.1:57536 - "GET /api/v1/users/user/settings HTTP/1.1" 200 OK
2025-01-31 17:19:59 INFO: 172.17.0.1:57536 - "POST /api/v1/chats/new HTTP/1.1" 200 OK
2025-01-31 17:19:59 INFO: 172.17.0.1:57536 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
2025-01-31 17:19:59 INFO: 172.17.0.1:57552 - "GET /static/favicon.png HTTP/1.1" 304 Not Modified
2025-01-31 17:19:59 INFO: 172.17.0.1:57536 - "POST /api/v1/chats/68101afe-7fbe-4246-bc64-e22dd0321366 HTTP/1.1" 200 OK
2025-01-31 17:19:59 INFO: 172.17.0.1:57552 - "GET /static/favicon.png HTTP/1.1" 304 Not Modified
2025-01-31 17:19:59 INFO: 172.17.0.1:57552 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
2025-01-31 17:20:03 INFO: 172.17.0.1:57552 - "POST /api/chat/completions HTTP/1.1" 200 OK
2025-01-31 17:20:03 INFO: 172.17.0.1:57552 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
2025-01-31 17:20:05 INFO: 172.17.0.1:57552 - "POST /api/chat/completed HTTP/1.1" 200 OK
2025-01-31 17:20:05 INFO: 172.17.0.1:57552 - "POST /api/v1/chats/68101afe-7fbe-4246-bc64-e22dd0321366 HTTP/1.1" 200 OK
2025-01-31 17:20:05 INFO: 172.17.0.1:57552 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
2025-01-31 17:20:12 INFO: 172.17.0.1:56220 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
2025-01-31 17:20:21 INFO: 172.17.0.1:61326 - "GET /api/v1/chats/68101afe-7fbe-4246-bc64-e22dd0321366 HTTP/1.1" 200 OK
2025-01-31 17:20:21 INFO: 172.17.0.1:61326 - "GET /api/v1/chats/all/tags HTTP/1.1" 200 OK
2025-01-31 17:20:34 INFO: 172.17.0.1:61320 - "POST /api/v1/tasks/auto/completions HTTP/1.1" 200 OK
Screenshots/Screen Recordings (if applicable):
