8 views
-/https://github.com/berriai/litellm/issues/33456
GitHub · issue

#33456 [Bug]: "litellm.MidStreamFallbackError: litellm.APIConnectionError: 'MockValSer' object cannot be converted to 'SchemaSerializer'\nTraceback (most recent call last):

  • State: open
  • Author: @matepca55
  • Labels: bug, proxy

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

When I try to use opencode or any other harness like that using the litellm as a proxy , consuming sap ai core models it show me this error

"litellm.MidStreamFallbackError: litellm.APIConnectionError: 'MockValSer' object cannot be converted to 'SchemaSerializer'\nTraceback (most recent call last):\n File \"/app/.venv/lib/python3.13/site-packages/litellm/litellm_core_utils/streaming_handler.py\", line 2074, in __anext__\n obj_dict = processed_chunk.model_dump()\n File \"/app/.venv/lib/python3.13/site-packages/litellm/types/utils.py\", line 1791, in model_dump\n return super().model_dump(**kwargs)\n ~~~~~~~~~~~~~~~~~~^^^^^^^^^^\n File \"/app/.venv/lib/python3.13/site-packages/pydantic/main.py\", line 464, in model_dump\n return self.__pydantic_serializer__.to_python(\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^\n self,\n ^^^^^\n ...<12 lines>...\n serialize_as_any=serialize_as_any,\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n )\n ^\nTypeError: 'MockValSer' object cannot be converted to …

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d18h5m57s ago — entered · #import:https:::github.com:berriai:litellm post #2755
Issue 34619 is harder because it requires broad provider-integration work across model discovery, endpoint mapping, request/response transformations, compatibility handling, and comprehensive testing. Issue 33456 is more likely a localized streaming-serialization compatibility fix.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search