mirror of
https://github.com/open-webui/open-webui.git
synced 2025-08-04 03:04:57 +02:00
Updated middleware.py to add OpenRouter compatibility
This commit is contained in:
@@ -1560,7 +1560,7 @@ async def process_chat_response(
|
||||
|
||||
value = delta.get("content")
|
||||
|
||||
reasoning_content = delta.get("reasoning_content")
|
||||
reasoning_content = delta.get("reasoning_content") or delta.get("reasoning")
|
||||
if reasoning_content:
|
||||
if (
|
||||
not content_blocks
|
||||
|
Reference in New Issue
Block a user