mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-22 00:31:44 +00:00
chore(sap): suppress LIT001 on _validate_chunk payload param with reason
This commit is contained in:
parent
045e21b7a6
commit
400f686e06
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ class _StreamParser:
|
|||
"""Normalize orchestration streaming events into OpenAI-like chunks."""
|
||||
|
||||
@staticmethod
|
||||
def _validate_chunk(payload: dict) -> OpenAIChatCompletionChunk:
|
||||
def _validate_chunk(payload: dict) -> OpenAIChatCompletionChunk: # mutable-ok: normalizes the raw SSE dict in place (pops empty logprobs) before validation
|
||||
"""
|
||||
Validate an OpenAI-shaped dict into a chunk, normalizing fields that would
|
||||
otherwise break downstream serialization:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue