From 21757af83d92f5af9e401e9574744381f36d095f Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Thu, 6 Nov 2025 16:05:12 -0800 Subject: [PATCH] parse_jsonl_with_embedded_newlines --- litellm/router_utils/batch_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/router_utils/batch_utils.py b/litellm/router_utils/batch_utils.py index 0baad322fa9..aef8f5cc012 100644 --- a/litellm/router_utils/batch_utils.py +++ b/litellm/router_utils/batch_utils.py @@ -1,7 +1,7 @@ import io import json from os import PathLike -from typing import Optional +from typing import List, Optional from litellm._logging import verbose_logger from litellm.types.llms.openai import FileTypes, OpenAIFilesPurpose @@ -16,7 +16,7 @@ class InMemoryFile(io.BytesIO): self.content_type = content_type -def parse_jsonl_with_embedded_newlines(content: str) -> list[dict]: +def parse_jsonl_with_embedded_newlines(content: str) -> List[dict]: """ Parse JSONL content that may contain JSON objects with embedded newlines in string values.