mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00:00
Updated middleware.py to add OpenRouter compatibility
This commit is contained in:
parent
75b18f92b9
commit
efd86e2cb4
1 changed files with 1 additions and 1 deletions
|
|
@ -1560,7 +1560,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 a new issue