Support openrouter reasoning_content on streaming (#9094)

* feat(convert_dict_to_response.py): support openrouter format of reasoning content

* fix(transformation.py): fix openrouter streaming with reasoning content

Fixes https://github.com/BerriAI/litellm/issues/8193#issuecomment-270892962

* fix: fix type error
This commit is contained in:
Krish Dholakia 2025-03-09 20:03:59 -07:00 committed by GitHub
parent 42b7921ca1
commit f899b828cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 99 additions and 18 deletions

View file

@ -0,0 +1,5 @@
from litellm.llms.base_llm.chat.transformation import BaseLLMException
class OpenRouterException(BaseLLMException):
pass