Updated middleware.py to add OpenRouter compatibility

This commit is contained in:
binxn 2025-03-23 17:14:20 +01:00 committed by GitHub
parent 75b18f92b9
commit efd86e2cb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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