mirror of
https://github.com/open-webui/open-webui
synced 2025-04-22 07:18:29 +00:00
Merge pull request #11988 from binxn/dev
Updated middleware.py to add OpenRouter compatibility
This commit is contained in:
commit
a00e5a0c0e
@ -1558,7 +1558,7 @@ async def process_chat_response(
|
|||||||
|
|
||||||
value = delta.get("content")
|
value = delta.get("content")
|
||||||
|
|
||||||
reasoning_content = delta.get("reasoning_content")
|
reasoning_content = delta.get("reasoning_content") or delta.get("reasoning")
|
||||||
if reasoning_content:
|
if reasoning_content:
|
||||||
if (
|
if (
|
||||||
not content_blocks
|
not content_blocks
|
||||||
|
Loading…
Reference in New Issue
Block a user