Merge pull request #11988 from binxn/dev

Updated middleware.py to add OpenRouter compatibility
This commit is contained in:
Timothy Jaeryang Baek 2025-03-23 11:48:21 -07:00 committed by GitHub
commit a00e5a0c0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1558,7 +1558,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