mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-21 00:21:49 +00:00
style(sap): satisfy ruff format while keeping LIT001 suppression on param line
This commit is contained in:
parent
216455248e
commit
27e45cd855
1 changed files with 3 additions and 1 deletions
|
|
@ -48,7 +48,9 @@ class _StreamParser:
|
|||
"""Normalize orchestration streaming events into OpenAI-like chunks."""
|
||||
|
||||
@staticmethod
|
||||
def _validate_chunk(payload: dict) -> OpenAIChatCompletionChunk: # mutable-ok: normalizes the raw SSE dict in place (pops empty logprobs) before validation
|
||||
def _validate_chunk(
|
||||
payload: dict, # mutable-ok: normalized in place (pops empty logprobs) before validation
|
||||
) -> OpenAIChatCompletionChunk:
|
||||
"""
|
||||
Validate an OpenAI-shaped dict into a chunk, normalizing fields that would
|
||||
otherwise break downstream serialization:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue