diff --git a/litellm/llms/sap/chat/handler.py b/litellm/llms/sap/chat/handler.py index 322b169473c..cfd5bcebb51 100755 --- a/litellm/llms/sap/chat/handler.py +++ b/litellm/llms/sap/chat/handler.py @@ -59,7 +59,7 @@ class _StreamParser: model_dump() calls in the streaming handler don't raise "'MockValSer' object is not an instance of 'SchemaSerializer'" """ - for choice in payload.get("choices") or []: + for choice in payload.get("choices") or []: # mutable-ok: only iterated, never mutated if isinstance(choice, dict) and not choice.get("logprobs"): choice.pop("logprobs", None) chunk = OpenAIChatCompletionChunk.model_validate(payload)